Permalink
Browse files

Use SHA256 instead of SHA1

  • Loading branch information...
1 parent 8ffab57 commit 62c6b39f99c52f24f8ad905c6daf787ce016c72c @KonishchevDmitry committed May 26, 2017
Showing with 3 additions and 3 deletions.
  1. +3 −3 pyvsb/utils.py
View
@@ -10,7 +10,7 @@
import tarfile
import tempfile
-from hashlib import sha1
+from hashlib import sha256
import psys
@@ -134,7 +134,7 @@ class HashableFile():
def __init__(self, file):
self.__file = file
- self.__hash = sha1()
+ self.__hash = sha256()
def hexdigest(self):
@@ -155,7 +155,7 @@ def reset(self):
"""Resets the file position."""
self.__file.seek(0)
- self.__hash = sha1()
+ self.__hash = sha256()

0 comments on commit 62c6b39

Please sign in to comment.