Ticket #8647: hashcompat.py.diff

File hashcompat.py.diff, 478 bytes (added by sammyrulez, 7 years ago)
  • .py

    old new  
    99    import hashlib
    1010    md5_constructor = hashlib.md5
    1111    sha_constructor = hashlib.sha1
     12    sha256_constructor = hashlib.sha256
    1213except ImportError:
    1314    import md5
    1415    md5_constructor = md5.new
    1516    import sha
    1617    sha_constructor = sha.new
     18    sha256_constructor = sha.new
Back to Top