forked from martbock/laravel-diceware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiceware.php
98 lines (83 loc) · 3.1 KB
/
diceware.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
return [
/*
|--------------------------------------------------------------------------
| Number of Words per Passphrase
|--------------------------------------------------------------------------
|
| This value determines how many words a diceware generated passphrase
| will contain if no specific number of words is supplied when invoking
| the `generate` method on the Diceware facade.
|
*/
'number_of_words' => 6,
/*
|--------------------------------------------------------------------------
| Separator
|--------------------------------------------------------------------------
|
| This value determines which separator is used to separate the individual
| words in your passphrase if no specific separator is supplied when
| invoking the `generate` method on the Diceware facade. To not use a
| separator, simply set this value to an empty string.
|
*/
'separator' => '-',
/*
|--------------------------------------------------------------------------
| Capitalize
|--------------------------------------------------------------------------
|
| If you want to capitalize one random word in your passphrase,
| set this option to `true`.
| Example: 'landscape-FAVORING-cover-mauve'
|
*/
'capitalize' => true,
/*
|--------------------------------------------------------------------------
| Add a Number
|--------------------------------------------------------------------------
|
| If you want to include a number in every generated password, set this
| option to `true`. The number will be prepended to the passphrase.
| Example: '93-neglector-silly-papaya-mankind-feel-portly'
|
*/
'add_number' => false,
/*
|--------------------------------------------------------------------------
| Wordlist
|--------------------------------------------------------------------------
|
| Here you may choose which of the included wordlists you want to use.
| If you set the `custom_wordlist.wordlist_path` option to a value other
| than null, the value of `wordlist` will be ignored.
| Supported values: 'english', 'eff', 'german'
|
*/
'wordlist' => 'eff',
/*
|--------------------------------------------------------------------------
| Custom Wordlist
|--------------------------------------------------------------------------
|
| If you want to use your own wordlist, you may set this option to
| the absolute path of your wordlist file.
| The `wordlist` option will be ignored.
| Example: __DIR__ . '../wordlists/foobar.txt'
|
*/
'custom_wordlist_path' => null,
/*
|--------------------------------------------------------------------------
| Number of Dice
|--------------------------------------------------------------------------
|
| If you want to use a wordlist that supports a different number of dice
| than the included wordlists (they all use 5 dice),
| you may also change that value.
|
*/
'number_of_dice' => 5,
];