Bump to version 1.0.3
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-04 20:38:34 +01:00
parent 2271a899c1
commit 862f9748f7
3 changed files with 598 additions and 332 deletions

View File

@ -28,7 +28,7 @@ impl CryptoWrapper {
/// Encrypt some data, returning the result as a base64-encoded string
pub fn encrypt<T: Encode + Decode>(&self, data: &T) -> Result<String, Box<dyn Error>> {
let aes_key = Aes256Gcm::new(&self.key);
let nonce_bytes = rand::thread_rng().gen::<[u8; NONCE_LEN]>();
let nonce_bytes = rand::rng().random::<[u8; NONCE_LEN]>();
let serialized_data = bincode::encode_to_vec(data, bincode::config::standard())?;