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
- Clone the repository
- Install development dependencies:
pip install -e ".[dev]"
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file password_converter-0.2.7.tar.gz.
File metadata
- Download URL: password_converter-0.2.7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80479fec38d7873db07224db853e6290556a59197177206e7fb48385b61afba7
|
|
| MD5 |
c4ef3f9228afc1dbe61499f0fe04062a
|
|
| BLAKE2b-256 |
fb6c75b67a9e2660b2a6f85169e1460d65fc33d5ba7a10c5ee4c9668f09cf9c1
|
File details
Details for the file password_converter-0.2.7-py3-none-any.whl.
File metadata
- Download URL: password_converter-0.2.7-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6e894267c3f8d8d7c67b61a035ccb1db7a55e41d784f963630044d91cee8f66
|
|
| MD5 |
a887d3254aca75cd089319a263d849fc
|
|
| BLAKE2b-256 |
49a88993f49c4c44ef22ddc46dd1f26ff1435bc06d5259ec33a8cca700119d2d
|