Function ubiq::encryption::encrypt
source · pub fn encrypt(c: &Credentials, pt: &[u8]) -> Result<Vec<u8>>Expand description
Encrypt a single plaintext with a unique key
This function is equivalent to creating a new Encryption object
for a single use and calling begin(), update(pt), and end().