Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_database: choose encryption and kdf algorithms #403

Open
nicolas2k opened this issue Oct 24, 2024 · 1 comment
Open

create_database: choose encryption and kdf algorithms #403

nicolas2k opened this issue Oct 24, 2024 · 1 comment

Comments

@nicolas2k
Copy link

Hello,

It seems that it's completed in fucntion "def create_database". I'd like to change in default :
create_database(db_path, password, encryption_algorithm="chacha20", kdf_algorithm="argon2id")

But I see in pykeepass.py :
"""
Create a new database at filename with supplied credentials.

Args:
    filename (:obj:`str`, optional): path to database or stream object.
        If None, the path given when the database was opened is used.
    password (:obj:`str`, optional): database password.  If None,
        database is assumed to have no password
    keyfile (:obj:`str`, optional): path to keyfile.  If None,
        database is assumed to have no keyfile
    transformed_key (:obj:`bytes`, optional): precomputed transformed
        key.

Returns:
    PyKeePass
"""

Have you other suggestion or I made a mistake ?

Thanks

@Evidlo
Copy link
Member

Evidlo commented Oct 26, 2024

This is a limitation of the library. We don't yet support changing the encryption/keyderivation algorithms.

@Evidlo Evidlo changed the title create_database() got an unexpected keyword argument 'encryption_algorithm' or 'kdf_algorithm' create_database: choose encryption and kdf algorithms Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants