Skip to content

Commit 0c4d113

Browse files
frozencemeterysimo5
authored andcommitted
Add simple script for generating session keys
Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com> Closes #105
1 parent 6f9608c commit 0c4d113

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

contrib/session_generator.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env python
2+
# Works with both python2 and python3; please preserve this property
3+
4+
# Copyright (C) 2016 mod_auth_gssapi contributors - See COPYING for (C) terms
5+
6+
# Simple script to generate GssapiSessionKey values
7+
8+
import base64
9+
import os
10+
11+
bits = base64.b64encode(os.urandom(32))
12+
print("GssapiSessionKey key:" + bits.decode('utf-8'))

0 commit comments

Comments
 (0)