syn.crypt.sign.detached
Functions
create
string syn.crypt.sign.detached.create(data: string, secret_key: string)
Creates a signature for data
with the secret_key
, and returns the signature.
verify
bool syn.crypt.sign.detached.verify(data: string, signature: string, public_key: string)
Verifies the data
passed in with the public_key
and signature
, and returns true
if the verification succeeds. Returns false
if verification fails.