Rebol 编程/rsa-encrypt
外观
< Rebol 编程
RSA-ENCRYPT obj data /decrypt /private /padding padding-type
加密或解密一些数据
RSA-ENCRYPT 是一个原生值。
- obj -- RSA 密钥对象(类型:对象)
- data -- 要加密的数据(类型:二进制)
- /decrypt -- 解密数据(默认是加密)
- /private -- 使用 RSA 私钥(默认是公钥)
- /padding -- 选择要使用的填充类型
- padding-type -- 填充类型(类型:单词 none)
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" ]