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