pub fn encrypt_data(
argon2: Argon2,
secure_data: SecureBytes,
credentials: Credentials,
) -> Result<Vec<u8>, Error>Expand description
Encrypts the given data
ยงArguments
argon2- The Argon2 instance to use for the password hashingsecure_data- The data to encryptcredentials- The credentials to use for encryption