Module java4ever.binding
Package tech.deplant.java4ever.binding
Interface Crypto.ParamsOfAppPasswordProvider
- All Known Implementing Classes:
Crypto.ParamsOfAppPasswordProvider.GetPassword
- Enclosing class:
Crypto
public static sealed interface Crypto.ParamsOfAppPasswordProvider
permits Crypto.ParamsOfAppPasswordProvider.GetPassword
To secure the password while passing it from application to the library,
the library generates a temporary key pair, passes the pubkey
to the passwordProvider, decrypts the received password with private key,
and deletes the key pair right away.
Application should generate a temporary nacl_box_keypair
and encrypt the password with naclbox function using nacl_box_keypair.secret
and encryption_public_key keys + nonce = 24-byte prefix of encryption_public_key. Interface that provides a callback that returns an encrypted password, used for cryptobox secret encryption
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record