< Back

Get-LessPass

Sat Jan 18, 2020 9:44 am

NAME Get-LessPass



SYNOPSIS

LessPass - stateless password generator





SYNTAX

Get-LessPass [[-Site] <String>] [[-Login] <String>] [-MasterPassword] <String> [-Lowercase] [-Uppercase] [-Digits]

[-Symbols] [-noLowercase] [-noUppercase] [-noDigits] [-noSymbols] [[-Length] <Object>] [[-Counter] <Object>]

[-version] [<CommonParameters>]





DESCRIPTION

LessPass computes a unique password using a Site, Login and a master password.

You don't need to sync a password vault across every device because LessPass works offline!



LINUX REQUIREMENT:

The `xclip` utility must be installed to support the copy to clipboard feature;

Debian-based platforms such as Ubuntu/Linux Mint, install it with:



sudo apt install xclip





PARAMETERS

-Site <String>

Site used in the password generation (required)



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Login <String>

Login used in the password generation

default to '' if not provided.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-MasterPassword <String>

Master password used in password generation

default to LESSPASS_MASTER_PASSWORD env variable or prompt



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Lowercase [<SwitchParameter>]

Add lowercase in password



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Uppercase [<SwitchParameter>]

Add uppercase in password



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Digits [<SwitchParameter>]

Add digits in password



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Symbols [<SwitchParameter>]

Add symbols in password



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-noLowercase [<SwitchParameter>]

Remove lowercase from password



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-noUppercase [<SwitchParameter>]

Remove uppercase from password



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-noDigits [<SwitchParameter>]

Remove digits from password



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-noSymbols [<SwitchParameter>]

Remove symbols from password



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Length <Object>

Password length (default: 16)



Required? false

Position? 4

Default value 16

Accept pipeline input? false

Accept wildcard characters? false



-Counter <Object>

Get a new version for an existing password (default: 1)



# .PARAMETER Prompt

# Interactively prompt SITE and LOGIN (prevent leak to shell history)



# .PARAMETER Clipboard

# Copy generated password to clipboard rather than displaying it.

# Need pbcopy (OSX), xsel or xclip (Linux) or clip (Windows).



# .PARAMETER Version

# lesspass version number



Required? false

Position? 5

Default value 1

Accept pipeline input? false

Accept wildcard characters? false



-version [<SwitchParameter>]

$Prompt,

$Clipboard,



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>lesspass Site Login masterpassword -noSymbols



No Symbols









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>lesspass Site Login masterpassword -L -U -D



No Symbols shortcut









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>lesspass Site Login masterpassword -D -L 8



Only Digits and Length of 8



# .EXAMPLE # is it applicable to Powershell?

# LESSPASS_MASTER_PASSWORD="masterpassword" lesspass Site Login



# Master password in env variable











RELATED LINKS

Website: http://lesspass.com/

Github: https://github.com/lesspass/lesspass/