Skip to content

create_database: choose encryption and kdf algorithms #403

@nicolas2k

Description

@nicolas2k

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions