diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-04-16 17:50:26 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-04-16 17:50:26 +0300 |
commit | 1bccc0701a81faa6d0a17d756578b9072e509e4f (patch) | |
tree | 9333297f4301e8f51121934c1e4ad4ee39b7c798 | |
parent | abc286339993170127e8501ffb331fb8c40192a9 (diff) | |
download | distixapi-1bccc0701a81faa6d0a17d756578b9072e509e4f.tar.gz |
Add command to encrypt passwords
-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) |