Crate keys

Crate keys 

Source

Enumsยง

Commands ๐Ÿ”’
Command-line interface for the keys utility

Constantsยง

KEY_SIZE ๐Ÿ”’
Size of the derived encryption key (32 bytes for AES-256)
NONCE_SIZE ๐Ÿ”’
Size of the nonce used for AES-GCM encryption (12 bytes)
PBKDF2_ITERATIONS ๐Ÿ”’
Number of PBKDF2 iterations for key derivation
SALT_SIZE ๐Ÿ”’
Size of the salt used for key derivation (32 bytes)

Functionsยง

decrypt_key ๐Ÿ”’
Decrypts data that was encrypted with encrypt_key
encrypt_key ๐Ÿ”’
Encrypts a private key using AES-256-GCM with PBKDF2 key derivation
main ๐Ÿ”’