We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df97b86 commit 9d263a9Copy full SHA for 9d263a9
gitcrypt
@@ -28,8 +28,18 @@ init_config() {
28
done
29
30
while [ -z "$PASS" ]; do
31
- echo -n "Enter your passphrase: "
32
- read PASS
+ echo -n "Generate a random password? [Y/n]"
+ read answer
33
+
34
+ case "$answer" in
35
+ n*|N*)
36
+ echo -n "Enter your passphrase: "
37
+ read PASS
38
+ ;;
39
+ *)
40
+ PASS=$(cat /dev/urandom | tr -dc '!@#$%^&*()_A-Z-a-z-0-9' | head -c32)
41
42
+ esac
43
44
45
while [ 1 ]; do
0 commit comments