Skip to content

Commit

Permalink
Hashing Password Project
Browse files Browse the repository at this point in the history
  • Loading branch information
WannaCry016 committed Nov 1, 2024
1 parent 1599b5d commit 7253b12
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
19 changes: 19 additions & 0 deletions PROJECTS/Hashing Passwords/hashing_passwords.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- cofing: utf-8 -*-
import argparse
import hashlib

# parsing
parser = argparse.ArgumentParser(description='hashing given password')
parser.add_argument('password', help='input password you want to hash')
parser.add_argument('-t', '--type', default='sha256',choices=['sha256', 'sha512', 'md5'] )
args = parser.parse_args()

# hashing given password
password = args.password
hashtype = args.type
m = getattr(hashlib,hashtype)()
m.update(password.encode())

# output
print("< hash-type : " + hashtype + " >")
print(m.hexdigest())
3 changes: 1 addition & 2 deletions profiles/Ayushman Pal.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ Chennai, INDIA
- Python

### Projects

- [Portfolio] https://github.com/WannaCry016
- [Smart FAQ Module](https://github.com/WannaCry016/SMARTFAQ-MODULE) - A Smart Faq Module that recommend Faqs based on search

### Profile Link

Expand Down
7 changes: 6 additions & 1 deletion scripts/hello_world_WannaCry016.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
print("Hello World")
# LANGUAGE: Python
# ENV: Python 3
# AUTHOR: Ayushman Pal
# GITHUB: https://github.com/WannaCry016

print("Hello World")

0 comments on commit 7253b12

Please sign in to comment.