encrypt_data

Function encrypt_data 

Source
pub fn encrypt_data(
    argon2: Argon2,
    data: SecureBytes,
    credentials: Credentials,
) -> Result<Vec<u8>, Error>
Expand description

Encrypts the given data

ยงArguments

  • argon2 - The Argon2 instance to use for the password hashing
  • data - The data to encrypt
  • credentials - The credentials to use for encryption