Skip to content

Commit d7627dc

Browse files
commit
Signed-off-by: Warmonger <[email protected]>
1 parent a545025 commit d7627dc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Diff for: Password_Cracking/hasher.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/python
2+
3+
import hashlib
4+
5+
hashValue = input('Enter String to Hash: ')
6+
7+
hashmd5 = hashlib.md5()
8+
hashmd5.update(hashValue.encode())
9+
print('MD5 Hash: ' + hashmd5.hexdigest())
10+
11+
hashsha1 = hashlib.sha1();
12+
hashsha1.update(hashValue.encode())
13+
print('SHA1 Hash: ' + hashsha1.hexdigest())
14+
15+
hashsha224 = hashlib.sha224()
16+
hashsha224.update(hashValue.encode())
17+
print('SHA224 Hash: ' + hashsha224.hexdigest())
18+
19+
hashsha256 = hashlib.sha256()
20+
hashsha256.update(hashValue.encode())
21+
print('SHA256 Hash: ' + hashsha256.hexdigest())
22+
23+
hashsha512 = hashlib.sha512()
24+
hashsha512.update(hashValue.encode())
25+
print('SHA512 Hash: ' + hashsha512.hexdigest())

0 commit comments

Comments
 (0)