#-- # Script to test the JavaScript hash algorithms # This produces an HTML file, that you load in a browser to run the tests #-- import hashlib, base64, hmac all_algs = ['md5', 'sha1', 'ripemd160', 'sha256', 'sha512'] short = {'ripemd160': 'rmd160'} test_strings = ['hello', 'world', u'fred\u1234'.encode('utf-8'), 'this is a longer test message to confirm that multiple blocks are handled correctly by the hashing algorithm'] print """""" for alg in all_algs: algs = short.get(alg, alg) print """ """ print ""