 | RsaEncrypt Method (String, String) |
Encrypts data
Namespace:
Cauldron.Cryptography
Assembly:
Cauldron.Cryptography (in Cauldron.Cryptography.dll) Version: 3.2.0.2
SyntaxPublic Shared Function Encrypt (
publicKey As String,
data As String
) As Byte()
Parameters
- publicKey
- Type: SystemString
The public key to use to encrypt the data - data
- Type: SystemString
The data to encrypt. The string data will be converted to bytes using UTF8
Return Value
Type:
ByteThe ecrypted data
Exceptions
See Also