Skip to content

Commit f0c4b99

Browse files
committed
Added sha256 hashing
1 parent 9629aef commit f0c4b99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sha256_hashing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from hashlib import sha256
2+
print("Please enter password to be hashed:")
3+
passwd = input()
4+
hashed = sha256(passwd.encode()).hexdigest()
5+
print("Hashed password:\n" + hashed)

0 commit comments

Comments
 (0)