Net Encryption Library
GetSymmetricEncryptionKeySize Method
Example 






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class : GetSymmetricEncryptionKeySize Method
Returns the maximum symmetric algorithm key size in bits.
Syntax
'Declaration
 
Public Function GetSymmetricEncryptionKeySize( _
   ByVal encryptionType As EncryptionProvider _
) As System.Integer
'Usage
 
Dim instance As Encryption
Dim encryptionType As EncryptionProvider
Dim value As System.Integer
 
value = instance.GetSymmetricEncryptionKeySize(encryptionType)
public System.int GetSymmetricEncryptionKeySize( 
   EncryptionProvider encryptionType
)
public function GetSymmetricEncryptionKeySize( 
    encryptionType: EncryptionProvider
): System.Integer; 
public function GetSymmetricEncryptionKeySize( 
   encryptionType : EncryptionProvider
) : System.int;
public: System.int GetSymmetricEncryptionKeySize( 
   EncryptionProvider encryptionType
) 
public:
System.int GetSymmetricEncryptionKeySize( 
   EncryptionProvider encryptionType
) 

Parameters

encryptionType
Example
Encryption encryption = new Encryption(); //Trial Mode
//Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode
 
int results = encryption.GetSymmetricEncryptionKeySize(EncryptionProvider.Rijndael);
Console.WriteLine(results);
Dim encryption As New Encryption() 'Trial Mode
'Dim encryption As New Encryption("place user name here", "place license key here") 'License Mode
 
Dim results As Integer = encryption.GetSymmetricEncryptionKeySize(EncryptionProvider.Rijndael)
Console.WriteLine(results)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Encryption Class
Encryption Members