2013-06-11から1日間の記事一覧
# coding=utf-8 from binascii import hexlify import M2Crypto from M2Crypto.EVP import MessageDigest import hashlib # ファイルのsha1ハッシュ値の計算(hashlib) sha1 = hashlib.sha1() sha1.update(open('file.txt', 'r').read()) print sha1.hexdiges…
# coding=utf-8 from binascii import hexlify import M2Crypto from M2Crypto.EVP import MessageDigest import hashlib # ファイルのsha1ハッシュ値の計算(hashlib) sha1 = hashlib.sha1() sha1.update(open('file.txt', 'r').read()) print sha1.hexdiges…