|
@@ -42,31 +42,31 @@ Produce `usuarios/juan@example.com/juan@example.com.p12`.
|
|
|
|
|
|
|
|
### Generación de contraseñas.
|
|
### Generación de contraseñas.
|
|
|
|
|
|
|
|
-### 1. GPG
|
|
|
|
|
|
|
+#### 1. GPG
|
|
|
|
|
|
|
|
gpg --gen-random --armor 1 32
|
|
gpg --gen-random --armor 1 32
|
|
|
|
|
|
|
|
-### 2. openssl
|
|
|
|
|
|
|
+#### 2. openssl
|
|
|
|
|
|
|
|
openssl rand -base64 32
|
|
openssl rand -base64 32
|
|
|
|
|
|
|
|
-### 3. apg
|
|
|
|
|
|
|
+#### 3. apg
|
|
|
|
|
|
|
|
apg
|
|
apg
|
|
|
|
|
|
|
|
-### 4. date
|
|
|
|
|
|
|
+#### 4. date
|
|
|
|
|
|
|
|
date +%s | sha256sum | base64 | head -c 32 ; echo
|
|
date +%s | sha256sum | base64 | head -c 32 ; echo
|
|
|
|
|
|
|
|
-### 5. urandom
|
|
|
|
|
|
|
+#### 5. urandom
|
|
|
|
|
|
|
|
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;
|
|
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;
|
|
|
|
|
|
|
|
-### 6. tr
|
|
|
|
|
|
|
+#### 6. tr
|
|
|
|
|
|
|
|
tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1
|
|
tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1
|
|
|
|
|
|
|
|
-### 7. strings
|
|
|
|
|
|
|
+#### 7. strings
|
|
|
|
|
|
|
|
strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo
|
|
strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo
|
|
|
|
|
|