-
-
Notifications
You must be signed in to change notification settings - Fork 5
Password
Namespace: Skylark.Standard.Extension.Password
Assembly: Skylark.Standard.dll
This class contains extension methods for password management.
Measures the strength of a password by calculating its entropy and returns the password type. If the password is empty, it returns an error message.
- Password (optional): The password to be measured. Default value is
MPPM.Password
.
The password type. See EMPT
for possible values.
-
Skylark.Exception
: Thrown when an error occurs during the calculation.
Asynchronously measures the strength of a password by calculating its entropy and returns the password type. If the password is empty, it returns an error message.
- Password (optional): The password to be measured. Default value is
MPPM.Password
.
The password type as a Task
. See EMPT
for possible values.
Generate(int Length = MPPM.Length, string Alphabetic = MPPM.DefaultType, string Special = MPPM.DefaultType, string Prefix = MPPM.Prefix, string Suffix = MPPM.Suffix): string
Generates a new password with the specified length and character types and returns the generated password. If no character types are specified, it returns an error message.
- Length (optional): The length of the password. Default value is
MPPM.Length
. - Alphabetic (optional): The type of alphabetic characters to be used. Default value is
MPPM.DefaultType
. SeeEAPT
for possible values. - Special (optional): The type of special characters to be used. Default value is
MPPM.DefaultType
. SeeESLPT
for possible values. - Prefix (optional): The prefix to be added to the generated password. Default value is
MPPM.Prefix
. - Suffix (optional): The suffix to be added to the generated password. Default value is
MPPM.Suffix
.
The generated password as a string.
-
Skylark.Exception
: Thrown when no character types are specified.
- Tax
- Url
- Web
- Ping
- Port
- Text
- Time
- Hash
- Word
- Color
- Speed
- Lottery
- Storage
- Browser
- Unicode
- Password
- JavaScript
- Cryptology
- Typography
- Temperature
- Compression
- Decompression
- Cascading Style Sheets
- JavaScript Object Notation
- Hypertext Markup Language
- Extensible Markup Language
- Extensible HyperText Markup Language