Skip to content

Commit

Permalink
/
Browse files Browse the repository at this point in the history
  • Loading branch information
horacehoff committed Aug 31, 2024
1 parent 8181e34 commit 38c7daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn encrypt_data(raw: &str) -> String {

// encrypt to aes and convert to string
// let encrypted = encrypt_aes(result);
return base64_url::encode(&result);
base64_url::encode(&result)
}

pub fn decrypt_data(raw: &str) -> String {
Expand All @@ -30,5 +30,5 @@ pub fn decrypt_data(raw: &str) -> String {
for number in numbers {
bytes.push(number as u8);
}
return from_utf8(&base64_url::decode(&from_utf8(&decrypt(&bytes, base64_url::encode(obfstr::obfstr!("d7b27ab68a4271dab68ab68ab68ab68e5ab6832e1b2965fc04fea48ac6adb7da547b27")).as_bytes()).unwrap()).unwrap()).unwrap()).unwrap().to_owned();
from_utf8(&base64_url::decode(&from_utf8(&decrypt(&bytes, base64_url::encode(obfstr::obfstr!("d7b27ab68a4271dab68ab68ab68ab68e5ab6832e1b2965fc04fea48ac6adb7da547b27")).as_bytes()).unwrap()).unwrap()).unwrap()).unwrap().to_owned()
}

0 comments on commit 38c7daa

Please sign in to comment.