Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Cryptela™ > Functions
digest/2
Description
digest/2 is an Erlang function exported by "cryptela" module.
This function generates a digital signature of a data buffer using predefined algorithm.
References
•Headers
•digest/1
Parameters
Name
Type
string()
Digest algorithm. Refer to Headers for the supported algorithm.
Data
binary()
Input data buffer
Result
Value or Type
On success returns a binary with digital signature
Code Sample
> cryptela:digest("md5", <<"Test">>).
<<12,188,102,17,245,84,11,208,128,154,56,141,201,90,97,91>>