Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
lagebj committed Nov 7, 2019
2 parents c87ee2c + 57b9c43 commit 16020a4
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/about.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# What is Passphraser

Powershell passphrase generator for lazy admins
In short: A Powershell passphrase generator authored by me, Lage Berger Jensen. There is not much else to say really.

Authored by Lage Berger Jensen
Passphraser contains one function; New-Passphrase. New-Passphrase returns a random passphrase as a string that you can easily pipe to e.g. "clip".
See "How to use Passphraser" for examples.
199 changes: 199 additions & 0 deletions docs/howto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
# How to use Passphraser

The syntax for New-Passphrase is
```
New-Passphrase
[[-AmountOfWords] <Int32>]
[[-Separator] <String>]
[-IncludeNumbers]
[[-AmountOfNumbers] <Int32>]
[-IncludeUppercase]
[-IncludeSpecials]
[[-AmountOfSpecials] <Int32>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

### Example 1
```powershell
PS C:\> New-Passphrase
```
Generates a new all lowercase password with default values, 3 words and whitespace as separator.

### Example 2
```powershell
PS C:\> New-Passphrase -Separator "-"
```
Generates a new all lowercase password with 3 words and dash (-) as separator.

### Example 3
```powershell
PS C:\> New-Passphrase -AmountOfWords 5 -Separator "-" -IncludeNumbers -AmountOfNumbers 2 -IncludeUppercase
```
Generates a new password with 5 words, dash (-) as separator with 2 numbers and one uppercase word.

### Example 4
```powershell
PS C:\> New-Passphrase -AmountOfWords 5 -Separator "-" -IncludeNumbers -AmountOfNumbers 2 -IncludeUppercase -IncludeSpecials -AmountOfSpecials 2
```
Generates a new password with 5 words, dash (-) as separator with 2 numbers, 2 special characters and one uppercase word.

### Example 5
```powershell
PS C:\> New-Passphrase -AmountOfWords 5 -Separator "-" -IncludeNumbers -AmountOfNumbers 2 -IncludeUppercase -IncludeSpecials -AmountOfSpecials 2 | clip
```
Generates a new password with 5 words, dash (-) as separator with 2 numbers, 2 special characters, one uppercase word and pipes the string to "clip"

## PARAMETERS

### -AmountOfNumbers
Amount of numbers to include

```yaml
Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: 1
Accept pipeline input: False
Accept wildcard characters: False
```

### -AmountOfSpecials
Amount of special characters to include

```yaml
Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: 1
Accept pipeline input: False
Accept wildcard characters: False
```

### -AmountOfWords
Amount of words to get

```yaml
Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: 3
Accept pipeline input: False
Accept wildcard characters: False
```

### -Confirm
Prompts you for confirmation before running the cmdlet.

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IncludeNumbers
Includes numbers

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IncludeSpecials
Include special characters

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IncludeUppercase
Include an uppercase word

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Separator
Separator to use between words

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: " " (whitespace)
Accept pipeline input: False
Accept wildcard characters: False
```

### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### System.String

## NOTES

## RELATED LINKS
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ pages:
- Passphraser Basics:
- What is Passphraser: about.md
- Quick Start: Quick-Start-Installation-and-Example.md
- How to use Passphraser: howto.md
- Acknowledgements: acknowledgements.md

0 comments on commit 16020a4

Please sign in to comment.