Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(key: &[u8; 32], plaintext: &[u8]) -> Vec<u8> 
Expand description

AES-256-GCM 加密

返回 [nonce(12) | ciphertext | tag(16)]