Newbie Spellweaver
- Joined
- Jul 8, 2015
- Messages
- 7
- Reaction score
- 1
Hello today i will teach you how to code a Md5 hasher with 3 line on Python.
If i make this tutorial it's only for explain to people how and why Md5 is important, on google you have plenty of tools to encrypt your password with a few clicks.
So first let's have a FAQ before the tutorial.
What is MD5 Hash ?
Why use MD5 Hash ?
How to decrypt MD5 Hashed password ?
So let's start.
You will need for first :
Go to
and install passlib.
Open your Python IDLE.
and import haslib.
now for yo be able to type your password to encrypt:
and now we asked to display the word encrypted md5 hash :
We have finished !
Full code :
Thank you all, it's my first tutorial so be nice !
If i make this tutorial it's only for explain to people how and why Md5 is important, on google you have plenty of tools to encrypt your password with a few clicks.
So first let's have a FAQ before the tutorial.
What is MD5 Hash ?
-
You must be registered to see links
Why use MD5 Hash ?
- It can not be hacked, it was broken but with difficulty by experts.
- It is secured (i think ).
- For passwords in Mysql database.
How to decrypt MD5 Hashed password ?
- Not possible, but really ? So on the web you have a lot of tools that can help you decrypt MD5 codes but not all so be careful!
- It is one-way, you can't code a Md5 Decrypter it doesn't exist.*
So let's start.
You will need for first :
- Your brain & your hands.
- Python 2.5 and > 2.7 > 3.
- and internet.
Go to
You must be registered to see links
and install passlib.
Open your Python IDLE.
and import haslib.
Code:
import [COLOR=#ff0000]hashlib[/COLOR]
Code:
hash_key = [COLOR=#ff0000]raw_input[/COLOR]( "Type here your MD5 Password : " )
Code:
print [COLOR=#ff0000]hashlib.md5[/COLOR]( hash_key ).hexdigest()
We have finished !
Full code :
Code:
import hashlib
hash_key = raw_input( "Type here your MD5 Password : " )
print hashlib.md5( hash_key ).hexdigest()
Thank you all, it's my first tutorial so be nice !