From 77b99f7d3a8747f562f2b8f1e8df551aafea1b28 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 15 Apr 2021 13:35:06 +0300 Subject: Remove lorems and inpsumses --- src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/handlers.rs') diff --git a/src/handlers.rs b/src/handlers.rs index 7135190..5110bd5 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -110,7 +110,7 @@ pub async fn authenticate_user( .expect("failed to decrypt"); // decrypt c using key dec_key - let cipher = Aes128Cbc::new_var(&temp_key, &request.iv).unwrap(); + let cipher = Aes128Cbc::new_var(&temp_key, &request.iv.as_bytes()).unwrap(); let auth_plaintext = cipher .decrypt_vec(&base64::decode(request.c).unwrap()) .unwrap(); -- cgit v1.2.3-70-g09d2