Rebol Programming/rsa-encrypt
USAGE:
editRSA-ENCRYPT obj data /decrypt /private /padding padding-type
DESCRIPTION:
editEncrypts or decrypts some data
RSA-ENCRYPT is a native value.
ARGUMENTS
edit- obj -- The RSA key object (Type: object)
- data -- Data to encrypt (Type: binary)
REFINEMENTS
edit- /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
editrsa-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" ]