UtilPasswordsGenerateMemorablePassword(MemorablePasswordOptions, IEnumerableString) Method
Generates a memorable password based on the provided options and word list.
A memorable password is a type of password that is designed to be easy to remember,
while still providing a reasonable level of security.
It is a password generation methodology that aims to be recalled by the user
without the need for written notes or relying solely on password managers.
The concept behind a memorable password is to create a combination of words, phrases,
or memorable patterns that are personally meaningful to the user.
This can include using familiar words, personal information,
or unique combinations that have personal significance.
The goal is to create a password that is both secure and memorable,
striking a balance between convenience and protection.
Namespace: DevCase.Core.Security.PasswordsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
Public Shared Function GenerateMemorablePassword (
options As MemorablePasswordOptions,
wordList As IEnumerable(Of String)
) As String
Dim options As MemorablePasswordOptions
Dim wordList As IEnumerable(Of String)
Dim returnValue As String
returnValue = UtilPasswords.GenerateMemorablePassword(options,
wordList)
No code example is currently available or this language may not be supported.
- options MemorablePasswordOptions
-
The options for generating the memorable password.
- wordList IEnumerableString
-
The list of words to choose from.
String
The resulting memorable password.
The generated password by this function follows the following format:
(FixedPrefix)(DigitsPrefix+Separator)(Words+Separators)(Separator+DigitsSuffix)(FixedSuffix)
This is a code example.
No code example is currently available or this language may not be supported.
Dim options As New MemorablePasswordOptions With {
.NumberOfWords = 3,
.MinimumWordLength = 4,
.MaximumWordLength = 8,
.SeparatorCharacters = "._-+".ToCharArray(),
.StringCase = MemorablePasswordStringCase.TitleCase,
.FixedPrefix = Nothing,
.FixedSuffix = "!",
.NumberOfDigitsPrefix = 0,
.NumberOfDigitsSuffix = 3
}
Dim wordList As String() = System.IO.File.ReadAllLines(".\words.txt", Encoding.Default)
For i As Integer = 0 To 10
Dim password As String = GenerateMemorablePassword(options, wordList)
Console.WriteLine(password)
Next
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.