function

adecrypt . crypto . sncode

VERSIONlatest Asymetric decrypt

ADECRYPT

NAME

acderypt - Asymetric decrypt

SYNOPSIS

adecrypt(private_key:string,string)

PARAMETERS

private_key
Private encryption key value generated by genkey
text
Text to decrypt

RETURN

String
Returns the decrypted string.

EXAMPLES

keys = genkey(algo:"rsa","bits":1024);

ct = acrypt(keys.public, "This is a text; été");

adecrypt(keys.private, ct);

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>