Crate lesspass

Source

Structs§

CharacterSet
Flag that describes what characters are allowed when generating a password.

Enums§

Algorithm
Selects the hash algorithm to use in PBKDF2.

Constants§

MAX_ENTROPY_LEN
The maximum length of the entropy in bytes, inclusive.
MAX_PASSWORD_LEN
The maximum length of the rendered password, inclusive.
MIN_ENTROPY_LEN
The minimum length of the entropy in bytes, inclusive.
MIN_PASSWORD_LEN
The minimum length of the rendered password, inclusive.

Functions§

generate_entropy
Same as generate_entropy_to, but directly returns the entropy buffer instead of requiring a mutable output buffer.
generate_entropy_to
Generates the entropy needed to render the end password using a previously computed salt and a master password, and writes it to output.
generate_salt
Same as generate_salt_to, but directly returns the salt instead of requiring a mutable output buffer.
generate_salt_to
Generates the salt needed to compute the entropy using a combinaison of the target website, login and counters, and writes it to output.
generate_salt_to_uninit
Same as generate_salt_to, but works with an uninitialized output buffer, which is okay since it only writes to it, without reading from it.
get_fingerprint
Return the SHA-256 fingerprint that corresponds to the given master password.
render_password
Same as render_password_to, but directly returns the rendered password instead of requiring a mutable output buffer.
render_password_to
Generates a password of the given length using the provided entropy and character sets, and writes it to output.
render_password_to_uninit
Same as render_password_to, but works with an uninitialized output buffer, which is okay since it only writes to it, without reading from it.