Packages
Nitrogen Web Framework Core Library
Current section
Files
Jump to
Current section
Files
include/crypto_compat.hrl
-define(WF_ENCRYPT(Key, IV, Data), crypto:block_encrypt(aes_cbc128, Key, IV, Data)).
-define(WF_DECRYPT(Key, IV, Data), crypto:block_decrypt(aes_cbc128, Key, IV, Data)).
-define(WF_HASH(Data), crypto:hash(sha, Data)).