RSAMethods.Encrypt Method

Tungsten Suite

RSAMethodsEncrypt Method

Encrypts a byte array using the specified keysize and public key

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

Parameters

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

Return Value

Type: Byte
A byte array containing the encrypted data
See Also