aboutsummaryrefslogtreecommitdiff
path: root/pw
diff options
context:
space:
mode:
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