411 REFERENCE · Wikibooks
Rebol Programming/rsa-encrypt
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
USAGE:
RSA-ENCRYPT obj data /decrypt /private /padding padding-type
DESCRIPTION:
Encrypts or decrypts some data
RSA-ENCRYPT is a native value.
ARGUMENTS
obj -- The RSA key object (Type: object)
data -- Data to encrypt (Type: binary)
REFINEMENTS
/decrypt -- Decrypts the data (default is to encrypt)
/private -- Uses an RSA private key (default is a public key)
/padding -- Selects the type of padding to use
padding-type -- Type of padding (Type: word none)
SOURCE CODE
rsa-encrypt: native[
"Encrypts or decrypts some data"
obj [object!] "The RSA key object"
data [binary!] "Data to encrypt"
/decrypt "Decrypts the data (default is to encrypt)"
/private "Uses an RSA private key (default is a public key)"
/padding "Selects the type of padding to use"
padding-type [word! none!] "Type of padding"
]