Skip to content

Instantly share code, notes, and snippets.

@Fohlen
Created May 5, 2015 17:55
Show Gist options
  • Save Fohlen/760a10d7eb30394846fe to your computer and use it in GitHub Desktop.
Save Fohlen/760a10d7eb30394846fe to your computer and use it in GitHub Desktop.
A really simple thing to generate auth requests with pycube2crypto
#!/usr/bin/env python
import sys, cube2crypto
def main():
if sys.argv.__len__() == 2:
try:
challenge, answer = cube2crypto.generate_challenge(sys.argv[1])
print (str(challenge) + '\n' + str(answer))
except Exception:
print "Could not create a challenge"
else:
print "Usage: reqauth publickey"
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment