RSA.Encrypt Method (Byte[], RSAParameters)

Tungsten Suite

RSAEncrypt Method (Byte, RSAParameters)

Encrypts a byte[]

Namespace:  W.Encryption
Assembly:  Tungsten.Encryption (in Tungsten.Encryption.dll) Version: 2.0.2
Syntax
C#
public byte[] Encrypt(
	byte[] bytes,
	RSAParameters publicKey
)

Parameters

bytes
Type: SystemByte
The bytes to encrypt
publicKey
Type: System.Security.CryptographyRSAParameters
The public key used to encrypt the bytes

Return Value

Type: Byte
A byte[] containing the encrypted bytes
See Also