Net Encryption Library
GenerateSixDigitPin Method
Example 






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class : GenerateSixDigitPin Method
Generate a six digit PIN based on a string. Uses CRC32 as a basis. Always generates 6 digits.
Syntax
'Declaration
 
Public Function GenerateSixDigitPin( _
   ByVal value As System.String _
) As System.String
'Usage
 
Dim instance As Encryption
Dim value As System.String
Dim value As System.String
 
value = instance.GenerateSixDigitPin(value)
public System.string GenerateSixDigitPin( 
   System.string value
)
public function GenerateSixDigitPin( 
    value: System.String
): System.String; 
public function GenerateSixDigitPin( 
   value : System.String
) : System.String;
public: System.string* GenerateSixDigitPin( 
   System.string* value
) 
public:
System.String^ GenerateSixDigitPin( 
   System.String^ value
) 

Parameters

value
Example
Encryption encryption = new Encryption(); //Trial Mode
//Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode
 
string results = encryption.GenerateSixDigitPin("John Smith");
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 String = encryption.GenerateSixDigitPin("John Smith")
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