aboutsummaryrefslogtreecommitdiff
path: root/pw
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-08-20 20:42:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-08-20 20:42:16 -0300
commitd50c3847192acbb3a5be68b67320fd1819fa81fb (patch)
treeaaa338f51b4ae09c18a5980d5952232d3bf51678 /pw
downloadutils-cli-d50c3847192acbb3a5be68b67320fd1819fa81fb.tar.gz
utils-cli-d50c3847192acbb3a5be68b67320fd1819fa81fb.tar.bz2
Initial import
Diffstat (limited to 'pw')
-rwxr-xr-xpw7
1 files changed, 7 insertions, 0 deletions
diff --git a/pw b/pw
new file mode 100755
index 0000000..bf415e5
--- /dev/null
+++ b/pw
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# Simple password generator.
+#
+
+# Get a portion of /dev/urandom, and serialize as base64
+head -c ${1:-20} /dev/urandom | base64