add a create htaccess password function
authorpatrick nsukami <ndkpatt@gmail.com>
Wed, 24 Feb 2016 23:27:30 +0000 (23:27 +0000)
committerpatrick nsukami <ndkpatt@gmail.com>
Wed, 24 Feb 2016 23:27:30 +0000 (23:27 +0000)
.bash_function

index a0c6039..6434ddb 100644 (file)
@@ -2,6 +2,11 @@
 # my weird function file
 # lots of this coming from the internets
 
+my_create_htaccess_pwd(){
+    local password=$1
+    openssl passwd -crypt $password
+}
+
 my_find_file_size(){
     #echo "$(wc -c file.ext | awk '{print $1}') / 1024" | bc
     local file=$1