CryptoSys PKI Toolkit Manual

Example: Pwd.Prompt 

[VB6 equivalent: PWD_PromptEx]

Dim strPassword As String

strPassword = Pwd.Prompt(512, "Demo of PWD_PromptEx", "Type secret phrase:")
' Do something with the password...
If strPassword.Length > 0 Then
    Console.WriteLine("Password entered=" & strPassword)
    ''ElseIf nLen < 0 Then
    ''Console.WriteLine("User cancelled")
Else
    Console.WriteLine("Empty password entered or User Cancelled")
End If
' Clean up
''Call Wipe.String(strPassword, nLen)
strPassword = ""

See Also:
Pwd.Prompt Method (Int32, String, String)

[Contents] [Index]

[HOME]   [NEXT: Example: Rng.Bytes ...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.