Commit 0925f23a authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Rename snf-passtohash.py to hashpwd.py

parent 23f62254
......@@ -7,7 +7,7 @@ SUBDIRS = tasks
dist_doc_DATA = COPYING AUTHORS
dist_bin_SCRIPTS = snf-image-helper
dist_scripts_SCRIPTS= snf-passtohash.py inject-files.py decode-properties.py
dist_scripts_SCRIPTS= hashpwd.py inject-files.py decode-properties.py
dist_common_DATA = common.sh unattend.xml
edit = sed \
......
#!/usr/bin/env python
# Copyright (C) 2011 GRNET S.A.
# Copyright (C) 2011, 2013 GRNET S.A.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -19,9 +19,8 @@
"""Generate a hash from a given password
This program takes a password as an argument and
returns to standard output a hash followed by a newline.
To do this, it generates a random salt internally.
This program takes a password as an argument and returns to standard output a
hash followed by a newline.
"""
......
......@@ -116,7 +116,7 @@ unix_password() {
method="${SNF_IMAGE_PROPERTY_PASSWORD_HASHING_METHOD:-$default_method}"
echo -n "Encrypting password with \`$method' method ... "
encrypted=$("@scriptsdir@/snf-passtohash.py" -m "$method" "$password")
encrypted=$("@scriptsdir@/hashpwd.py" -m "$method" "$password")
echo "done"
users=()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment