Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Cryptela™ > Functions
digest/1
Description
digest/1 is an Erlang function exported by "cryptela" module.
This function generates a digital signature of a data buffer using the default algorithm set by ?CRYPTELA_DIGEST_DEFAULT.
References
•digest/2
Parameters
Name
Type
Data
binary()
Input data buffer
Result
Value or Type
On success returns a binary with digital signature
Code Sample
> cryptela:digest(<<"Test">>).
<<100,10,178,186,224,123,237,196,193,99,246,121,167,70,247,171,127,181,209,250>>