Encryption with Python
Encryption
The most famous hash functions like MD5 algorithm and SHA256 algorithm can be
utilized with small lines of codes in python. I find it really beautiful and
these are one of reasons I love python so much.
Let's look at the md5 first. The principle behind the hash encryption is that,
the process of authentication is done by comparing encrypted data. So we don't
need to decrypt the encrypted data. So, let's check out some cool functions
using md5 with python.
But there are some good reasons that you shouldn't use the md5 anymore. You
can check why md5 is not very secure by putting your encrypted data into md5
decyptor.
There is some ways that you can improve the security of md5 by adding salt.
Here is another fancy functions provided by python that you can easily add
salt.
You can also use another hashing functions like sha1, sha256, whirlpool and so
on. You can check the available algorithms using
print(hashlib.algorithms_available).
Comments
Post a Comment