Last modified on 13 November 2012, at 10:50

REBOL Programming/rsa-encrypt

USAGE:Edit

RSA-ENCRYPT obj data /decrypt /private /padding padding-type 

DESCRIPTION:Edit

Encrypts or decrypts some data

RSA-ENCRYPT is a native value.

ARGUMENTSEdit

  • obj -- The RSA key object (Type: object)
  • data -- Data to encrypt (Type: binary)

REFINEMENTSEdit

  • /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 CODEEdit

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"
]