diff options
-rwxr-xr-x | distixapi-encpw | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/distixapi-encpw b/distixapi-encpw new file mode 100755 index 0000000..0e2ef9c --- /dev/null +++ b/distixapi-encpw @@ -0,0 +1,6 @@ +#!/usr/bin/env python2 +import distixapi, sys + +for arg in sys.argv[1:]: + salt, password = arg.split(':', 1) + print distixapi.encrypt_password(salt, password) |