RSAMethods.EncryptAsync Method

Tungsten Suite

RSAMethodsEncryptAsync Method

Asynchronously encrypts a string 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 Task<byte[]> EncryptAsync(
	byte[] bytes,
	RSAParameters key
)

Parameters

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

Return Value

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