Skip to main content

Convert Kaspersky password manager exports to Apple Password format

Project description

Password Converter

Password Converter is a Python tool designed to convert exported password files from Kaspersky Password Manager into a format compatible with Apple Passwords. This utility simplifies the migration process for users switching between password management systems.


Features

  • Converts Kaspersky Password Manager exports into Apple Password format.
  • Validates password entries to ensure data integrity.
  • Logs invalid entries with helpful error messages for troubleshooting.
  • Outputs the converted data as a CSV file for easy import into Apple Passwords.
  • Command-line interface (CLI) for simple usage.

Installation

Requirements

  • Python 3.10 or higher.

Install via pip

pip install password-converter

Usage

Command Line

The input.txt file is the file that is generated automatically with the Kaspersky password manager, and the output.csv is the file that is going to be generated with your passwords. You can import this .csv file directly into the Passwords app.

password-converter input.txt output.csv
password-converter input.txt output.csv --log-level DEBUG --log-file convert.log

Python API

from password_converter import convert_file, convert_text

# Convert a file
convert_file("input.txt", "output.csv")

# Convert text directly
text = """
Website name: example.com
Website URL: https://example.com
Login: user@example.com
Password: secretpass
Comment: My account
---
"""
entries = convert_text(text)

Input Format

The input file should contain password entries separated by "---". Each entry should have the following format:

For websites:

Website name: Example Website
Website URL: https://example.com
Login: user@example.com
Password: secretpassword123
Comment: My favorite website

For applications:

Application: Example App
Login: user@example.com
Password: anotherpassword456
Comment:

Output Format

Title,URL,Username,Password,Notes,OTPAuth
Example Website (user@example.com),https://example.com,user@example.com,secretpassword123,My favorite website,
Example App (user@example.com),,user@example.com,anotherpassword456,,

Development

  1. Clone the repository
  2. Install development dependencies:
pip install -e ".[dev]"
  1. Run tests:
pytest

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

password_converter-0.3.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

password_converter-0.3.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file password_converter-0.3.0.tar.gz.

File metadata

  • Download URL: password_converter-0.3.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for password_converter-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2761aa79496bd54c8d06338fa32b67328882ecc01c51042bceadf859ff5cc0ad
MD5 a7f0b18fe3299ec5e10f15229d7b7d59
BLAKE2b-256 73294e34d8ca8dd240c4905e1e5fc71938a54438c1f75b6689dd62cab08a8bd3

See more details on using hashes here.

File details

Details for the file password_converter-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for password_converter-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74fe6ea585f33615902304645005195fc5fa4e108203c2701734500174736198
MD5 9dda689569036aebc7e7998f3773ac8d
BLAKE2b-256 0b63a7f198438ae55c2e1dc0f27531213877979241189f594ba5868435f2d968

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page