docs » PasswordGenerator

Generate a password and copy to the clipboard.

Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/PasswordGenerator.spoon.zip

API Overview

API Documentation

Variables

password_generator_function
Signature PasswordGenerator.password_generator_function
Type Variable
Description

Function used to generate passwords

password_length
Signature PasswordGenerator.password_length
Type Variable
Description

Length of generated passwords

Methods

bindHotkeys
Signature PasswordGenerator:bindHotkeys(mapping)
Type Method
Description

Binds hotkeys for PasswordGenerator

Parameters:

  • mapping - A table containing hotkey objifier/key details for the following items:
    • copy - Generate password and copy to clipboard
    • paste - Generate password and paste
copyPassword
Signature PasswordGenerator:copyPassword()
Type Method
Description

Generates a password and copies to clipboard

Parameters:

  • None

    Returns:

    • The generated password
pastePassword
Signature PasswordGenerator:pastePassword()
Type Method
Description

Generates a password and types it

Parameters:

  • None

    Returns:

    • The generated password