#NEWLINE# def is_sha256( content ) : #NEWLINE# #INDENT# 'Make sure this is actually an valid SHA256 hash.' #NEWLINE# digits58 = '0123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' #NEWLINE# for i in range ( len ( content ) ) : #NEWLINE# #INDENT# if ( not ( content [ content ] in digits58 ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return ( len ( content ) == 64 )