From 1bccc0701a81faa6d0a17d756578b9072e509e4f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 16 Apr 2017 17:50:26 +0300 Subject: Add command to encrypt passwords --- distixapi-encpw | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 distixapi-encpw 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) -- cgit v1.2.1