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.2.5.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.2.5-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: password_converter-0.2.5.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.2.5.tar.gz
Algorithm Hash digest
SHA256 69ed737d229db3069c3369d866b43cdc2dc2ce911eed3f3e69227f1bda6174b4
MD5 7d07df860a4b4a210175de4e78c2ab59
BLAKE2b-256 1e53dec9af46765f5f7f1fb599cb754f7a0c400823ecbedcd80e6bd29c1b782d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for password_converter-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 57122b882aae63bc810661f053d26ffe0189e792d2a1463aa31c29c3f8bed23c
MD5 4eaa52178f5953aa1f6b5aa2dc8f6ec2
BLAKE2b-256 6a26c5df32903ff71cabc350113e3114a96c06f610f3a5de9ead68b5fd7b1eca

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