sha256_test.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import hashlib, sys
00004 
00005 h = hashlib.new('sha256')
00006 h.update(sys.argv[1])
00007 res = h.digest()[:6]
00008 for i in range(6):
00009     sys.stdout.write("%02x " % ord(res[i]))
00010 sys.stdout.write("\n")
00011 
00012 
00013 
00014 


mavlink
Author(s): Lorenz Meier
autogenerated on Sun May 22 2016 04:05:43