I’d like to be able to call a cryptographic hashing function like sha256. Actually, it doesn’t need to be secure, so even sha-1 or md5 would be fine. Is there one in the VCV runtime I can call? If so, what header needs to be included?
1 Like
OpenSSL is included in the Rack SDK.
#include <openssl/sha.h>
unsigned char hash[SHA256_DIGEST_LENGTH];
SHA256_CTX sha256;
SHA256_Init(&sha256);
SHA256_Update(&sha256, str, strLen);
SHA256_Final(hash, &sha256);
1 Like
Ah, very cool. Thank you!