Skip to content
Snippets Groups Projects
Unverified Commit ee503ade authored by Cheuk Pui Lam's avatar Cheuk Pui Lam
Browse files

fmt(crypto-util)formatted

parent ac9d4f63
Branches cryptoutils
No related tags found
No related merge requests found
......@@ -6,9 +6,9 @@ pub mod chacha {
aead::{Aead, OsRng},
AeadCore, KeyInit, XChaCha20Poly1305, XNonce,
};
use hex::decode;
use log::debug;
use base64::prelude::*;
use log::debug;
pub fn encrypt(key: &[u8], plaintext: String) -> Result<String> {
let cipher = XChaCha20Poly1305::new_from_slice(key)?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment