Finish implementing some encryption in the network protocols with AES

This commit is contained in:
zontreck 2025-01-06 02:28:54 -07:00
parent 38eb7c6acd
commit 84cef345eb
10 changed files with 263 additions and 391 deletions

View file

@ -8,6 +8,10 @@ class Hashing {
return bytes2Hash(md5SumStr(input));
}
static String llMD5String(String src, int nonce) {
return md5Hash("${src}:${nonce}");
}
/// This will generate the Sha1 bytes and hash it using #bytes2Hash
static String sha1Hash(String input) {
return bytes2Hash(sha1SumStr(input));