diff options
author | Robbie Harwood <rharwood@redhat.com> | 2016-09-07 15:56:57 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2016-10-11 08:58:04 -0400 |
commit | 0c4d113b7379ac4eea6a51f1c510881095caf9e8 (patch) | |
tree | c07eb736e95d620a3f68ccba39875fa02c0e6e85 | |
parent | 6f9608c12b18d615b1af59b926e7df72f9fe0baf (diff) | |
download | mod_auth_gssapi-0c4d113b7379ac4eea6a51f1c510881095caf9e8.tar.gz mod_auth_gssapi-0c4d113b7379ac4eea6a51f1c510881095caf9e8.tar.xz mod_auth_gssapi-0c4d113b7379ac4eea6a51f1c510881095caf9e8.zip |
Add simple script for generating session keys
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Closes #105
-rw-r--r-- | contrib/session_generator.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/session_generator.py b/contrib/session_generator.py new file mode 100644 index 0000000..7e7de27 --- /dev/null +++ b/contrib/session_generator.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python +# Works with both python2 and python3; please preserve this property + +# Copyright (C) 2016 mod_auth_gssapi contributors - See COPYING for (C) terms + +# Simple script to generate GssapiSessionKey values + +import base64 +import os + +bits = base64.b64encode(os.urandom(32)) +print("GssapiSessionKey key:" + bits.decode('utf-8')) |