Loading tools/getb64key.py 0 → 100755 +17 −0 Original line number Diff line number Diff line #!/usr/bin/python import base64 import sys import os pkFile = open(sys.argv[1], 'rb').readlines() base64Key = "" inCert = False for line in pkFile: if line.startswith("-"): inCert = not inCert continue base64Key += line.strip() print base64.b16encode(base64.b64decode(base64Key)).lower() Loading
tools/getb64key.py 0 → 100755 +17 −0 Original line number Diff line number Diff line #!/usr/bin/python import base64 import sys import os pkFile = open(sys.argv[1], 'rb').readlines() base64Key = "" inCert = False for line in pkFile: if line.startswith("-"): inCert = not inCert continue base64Key += line.strip() print base64.b16encode(base64.b64decode(base64Key)).lower()