Skip to content

Hashing Crypto API

Nenkai edited this page Jul 14, 2024 · 2 revisions

CRC32 Hash

var crc32 = pdistd::CRC32(data);

MD5 Hash

var md5_str = pdistd::MD5(data);

Salsa Encryption/Decryption

var key = "hello";
var enc = pdistd::Salsa20Encrypt(key, "hello");
var dec = pdistd::Salsa20Decrypt(key, enc);
Clone this wiki locally