Action that checks password strength and generates secure passwords

Example

// Check password strength
await runAction({
ActionName: 'Password Strength',
Params: [{
Name: 'Operation',
Value: 'check'
}, {
Name: 'Password',
Value: 'MyPassword123!'
}, {
Name: 'UserInputs',
Value: ['john', 'doe', 'john.doe@example.com']
}]
});

// Generate secure password
await runAction({
ActionName: 'Password Strength',
Params: [{
Name: 'Operation',
Value: 'generate'
}, {
Name: 'Length',
Value: 16
}, {
Name: 'IncludeSymbols',
Value: true
}, {
Name: 'ExcludeAmbiguous',
Value: true
}]
});

// Generate with requirements
await runAction({
ActionName: 'Password Strength',
Params: [{
Name: 'Operation',
Value: 'generate'
}, {
Name: 'Requirements',
Value: {
minLength: 12,
maxLength: 20,
minLowercase: 2,
minUppercase: 2,
minNumbers: 2,
minSymbols: 1
}
}]
});

Hierarchy (view full)

Constructors

Properties

ambiguous: "il1Lo0O" = 'il1Lo0O'
lowercase: "abcdefghijklmnopqrstuvwxyz" = 'abcdefghijklmnopqrstuvwxyz'
numbers: "0123456789" = '0123456789'
symbols: "!@#$%^&*()_+-=[]{}|;:,.<>?" = '!@#$%^&*()_+-=[]{}|;:,.<>?'
uppercase: "ABCDEFGHIJKLMNOPQRSTUVWXYZ" = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

Methods

  • Checks password strength or generates secure passwords

    Parameters

    • params: RunActionParams<any>

      The action parameters containing:

      • Operation: "check" | "generate" (required)
      • For check operation:
        • Password: Password to check (required)
        • UserInputs: Array of user-related strings to check against (optional)
        • Requirements: Object with minimum requirements (optional)
      • For generate operation:
        • Length: Password length (default: 16)
        • IncludeUppercase: Include uppercase letters (default: true)
        • IncludeLowercase: Include lowercase letters (default: true)
        • IncludeNumbers: Include numbers (default: true)
        • IncludeSymbols: Include symbols (default: true)
        • ExcludeAmbiguous: Exclude ambiguous characters (default: false)
        • Requirements: Object with specific requirements

    Returns Promise<ActionResultSimple>

    Password strength analysis or generated password

  • Executes the action with the provided parameters.

    Parameters

    • params: RunActionParams<any>

      The action execution parameters including context

    Returns Promise<ActionResultSimple>

    Promise resolving to the action result