Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Cryptela™ > Functions
encrypt/3
Description
encrypt/3 is an Erlang function exported by "cryptela" module.
Commence data encryption with a symmetric key using the selected cipher algorithm.
References
•gen_key/1
Parameters
Name
Type
Cipher
string()
Cipher algorithm. Refer to gen_key/1 for more details.
Key
binary()
Symmetric key for data encryption.
Data
Input data buffer.
Result
Value or Type
On success returns an encrypted block of data.