| 
            
              TripleDESPrivacyProviderEncrypt(Byte, Byte, Byte) Method
             | 
          
        
        
            Encrypt scoped PDU using DES encryption protocol
            
        
        Namespace: GSF.Net.Snmp.SecurityAssembly: GSF.Net (in GSF.Net.dll) Version: 2.4.257-beta
Syntaxpublic static byte[] Encrypt(
	byte[] unencryptedData,
	byte[] key,
	byte[] privacyParameters
)
Public Shared Function Encrypt ( 
	unencryptedData As Byte(),
	key As Byte(),
	privacyParameters As Byte()
) As Byte()
public:
static array<unsigned char>^ Encrypt(
	array<unsigned char>^ unencryptedData, 
	array<unsigned char>^ key, 
	array<unsigned char>^ privacyParameters
)
static member Encrypt : 
        unencryptedData : byte[] * 
        key : byte[] * 
        privacyParameters : byte[] -> byte[] GSF.Net.Snmp.Security.TripleDESPrivacyProvider.Encrypt = function(unencryptedData, key, privacyParameters);
 View SourceParameters
- unencryptedData  Byte
 - Unencrypted scoped PDU byte array
 - key  Byte
 - Encryption key. Key has to be at least 32 bytes is length
 - privacyParameters  Byte
 - Privacy parameters out buffer. This field will be filled in with information
            required to decrypt the information. Output length of this field is 8 bytes and space has to be reserved
            in the USM header to store this information
 
Return Value
ByteEncrypted byte array
Exceptions| Exception | Condition | 
|---|
| ArgumentOutOfRangeException | Thrown when encryption key is null or length of the encryption key is too short. | 
See Also