Encrypts the specified data by providing encryption key and other data.
            
 
    Namespace: 
   Hummingbird.TestFramework.Cryptography
    Assembly:
   Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntaxpublic override byte[] Encrypt(
	byte[] key,
	byte[] iv,
	X509Certificate2 certificate,
	byte[] data,
	CipherMode ciphermode,
	PaddingMode paddingmode
)
Public Overrides Function Encrypt ( 
	key As Byte(),
	iv As Byte(),
	certificate As X509Certificate2,
	data As Byte(),
	ciphermode As CipherMode,
	paddingmode As PaddingMode
) As Byte()
public:
virtual array<unsigned char>^ Encrypt(
	array<unsigned char>^ key, 
	array<unsigned char>^ iv, 
	X509Certificate2^ certificate, 
	array<unsigned char>^ data, 
	CipherMode ciphermode, 
	PaddingMode paddingmode
) override
abstract Encrypt : 
        key : byte[] * 
        iv : byte[] * 
        certificate : X509Certificate2 * 
        data : byte[] * 
        ciphermode : CipherMode * 
        paddingmode : PaddingMode -> byte[] 
override Encrypt : 
        key : byte[] * 
        iv : byte[] * 
        certificate : X509Certificate2 * 
        data : byte[] * 
        ciphermode : CipherMode * 
        paddingmode : PaddingMode -> byte[] Parameters
- key
 - Type: SystemByte
The key. - iv
 - Type: SystemByte
The Initial Vector. - certificate
 - Type: System.Security.Cryptography.X509CertificatesX509Certificate2
The X509 certificate, if the algorithm needs a certificate. - data
 - Type: SystemByte
The data to be encrypted. - ciphermode
 - Type: System.Security.CryptographyCipherMode
The cipher mode. - paddingmode
 - Type: System.Security.CryptographyPaddingMode
The padding mode. 
Return Value
Type: 
Byte
            the encrypted data. For hash methods, the hashed data
            
See Also