Skip to content

Commit e2cf603

Browse files
committed
add: secure code
1 parent c732a85 commit e2cf603

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test_insecure_crypto.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
def encrypt():
2-
print("This is insecure!")
1+
import hashlib
2+
3+
m = hashlib.sha256()
4+
m.update(b"This is secure code because it uses official libraries.")
5+
m.digest()
36

4-
encrypt()

0 commit comments

Comments
 (0)