Adding file master
Adding file

file:a/README.md -> file:b/README.md
--- a/README.md
+++ b/README.md
@@ -1,4 +1,7 @@
 BashPwdGen
 ==========
 
-A (very) Simple Bash Password Generator
+A (very) Simple Bash Password Generator that I wrote in 2008 and stumbled back across recently.
+
+Could do with updating to allow inclusion of special characters in the password, but otherwise functional (if simple)
+

file:b/bashPwdGen.sh (new)
--- /dev/null
+++ b/bashPwdGen.sh
@@ -1,1 +1,29 @@
+#!/bin/bash
+#
+# A Password Generator
+# Currently not very secure
+# Copyright Ben Tasker 2008
 
+
+if [ "$1" == "" ]
+then
+
+echo "Password Length?"
+read LENGTH
+
+else
+
+LENGTH=$1
+
+fi
+
+
+BINRAND=$(dd if=/dev/urandom count=15 2> /dev/null)
+INPUT="$RANDOM $RANDOM $RANDOM $BINRAND $INFO"
+
+
+# Display the new password
+
+echo "$INPUT" | sha1sum | cut -c1-$LENGTH
+
+