Skip to content

Commit 1552d8e

Browse files
committed
hashlib.md5() on FIPS compliant systems (fixed #30)
1 parent 163dd07 commit 1552d8e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

base2.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"""
1313

1414
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
15-
__version__ = '2021101301'
15+
__version__ = '2021110901'
1616

1717
import collections
1818
import datetime
@@ -690,8 +690,8 @@ def parse_atom(atom, default):
690690
return (True, True ^ invert)
691691

692692

693-
def md5sum(string):
694-
return hashlib.md5(string).hexdigest()
693+
def sha1sum(string):
694+
return hashlib.sha1(string).hexdigest()
695695

696696

697697
def mltext2array(input, skip_header=False, sort_key=-1):

base3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"""
1313

1414
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
15-
__version__ = '2021091701'
15+
__version__ = '2021110901'
1616

1717
import collections
1818
import datetime
@@ -685,8 +685,8 @@ def parse_atom(atom, default):
685685
return (True, True ^ invert)
686686

687687

688-
def md5sum(string):
689-
return hashlib.md5(string.encode('utf-8')).hexdigest()
688+
def sha1sum(string):
689+
return hashlib.sha1(string.encode('utf-8')).hexdigest()
690690

691691

692692
def mltext2array(input, skip_header=False, sort_key=-1):

0 commit comments

Comments
 (0)