Skip to content

Instantly share code, notes, and snippets.

@feedhenry-gists
Created June 10, 2011 16:04
Show Gist options
  • Save feedhenry-gists/1019161 to your computer and use it in GitHub Desktop.
Save feedhenry-gists/1019161 to your computer and use it in GitHub Desktop.
Security Data Encryption
$fh.sec({
act:'encrypt',
params:
{algorithm:'RSA|AES',
plaintext:'<data to encrypt>',
key: '<public key hex value for RSA encryption or secret key hex value for AES encryption>',
modulu: '<hex value of the modulu for RSA encryption>'
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment