sha256_test.py
Go to the documentation of this file.
1 from builtins import range
2 #!/usr/bin/env python
3 
4 import hashlib, sys
5 
6 h = hashlib.new('sha256')
7 h.update(sys.argv[1])
8 res = h.digest()[:6]
9 for i in range(6):
10  sys.stdout.write("%02x " % ord(res[i]))
11 sys.stdout.write("\n")
12 
13 
14 
15 


mavlink
Author(s): Lorenz Meier
autogenerated on Sun Apr 7 2019 02:06:02