8000 Merge pull request #129 from tht-jxny/sha256_hashing · cation03/Basic-Python-Programs@b360a33 · GitHub
[go: up one dir, main page]

Skip to content

Commit b360a33

Browse files
Merge pull request souravjain540#129 from tht-jxny/sha256_hashing
Added sha256 hashing
2 parents d94cd35 + f0c4b99 commit b360a33

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)
0