Learn practical skills, build real-world projects, and advance your career
import numpy as np
import pandas as pd
import hashlib, time
from datetime import datetime
time: 375 ms (started: 2022-02-15 17:13:50 +05:30)
!pip install ipython-autotime
Requirement already satisfied: ipython-autotime in e:\anaconda\lib\site-packages (0.3.1) Requirement already satisfied: ipython in e:\anaconda\lib\site-packages (from ipython-autotime) (7.22.0) Requirement already satisfied: backcall in e:\anaconda\lib\site-packages (from ipython->ipython-autotime) (0.2.0) Requirement already satisfied: pickleshare in e:\anaconda\lib\site-packages (from ipython->ipython-autotime) (0.7.5) Requirement already satisfied: traitlets>=4.2 in e:\anaconda\lib\site-packages (from ipython->ipython-autotime) (5.0.5) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in e:\anaconda\lib\site-packages (from ipython->ipython-autotime) (3.0.17) Requirement already satisfied: decorator in e:\anaconda\lib\site-packages (from ipython->ipython-autotime) (5.0.6) Requirement already satisfied: colorama in e:\anaconda\lib\site-packages (from ipython->ipython-autotime) (0.4.4) Requirement already satisfied: pygments in e:\anaconda\lib\site-packages (from ipython->ipython-autotime) (2.8.1) Requirement already satisfied: setuptools>=18.5 in e:\anaconda\lib\site-packages (from ipython->ipython-autotime) (52.0.0.post20210125) Requirement already satisfied: jedi>=0.16 in e:\anaconda\lib\site-packages (from ipython->ipython-autotime) (0.17.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in e:\anaconda\lib\site-packages (from jedi>=0.16->ipython->ipython-autotime) (0.7.0) Requirement already satisfied: wcwidth in e:\anaconda\lib\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython->ipython-autotime) (0.2.5) Requirement already satisfied: ipython-genutils in e:\anaconda\lib\site-packages (from traitlets>=4.2->ipython->ipython-autotime) (0.2.0) time: 2.66 s (started: 2022-02-15 17:13:52 +05:30)
%load_ext autotime
The autotime extension is already loaded. To reload it, use: %reload_ext autotime time: 0 ns (started: 2022-02-15 17:13:56 +05:30)
#MD-5 Hashing
def md5hashing(word):
    result = hashlib.md5(word.encode())
    return result.hexdigest()

#SHA-256 Hashing
def sha256(word):
    result = hashlib.sha256(word.encode())
    return result.hexdigest()

#SHA-512 Hashing
def sha512(word):
    result = hashlib.sha512(word.encode())
    return result.hexdigest()
time: 0 ns (started: 2022-02-15 17:13:57 +05:30)
passage = """The 2022 Indian Premier League (IPL) mega auction saw many players earn a premium amount as the ten teams battled hard to build the best possible squad in order to lift the title in the upcoming season. However, many players failed to find a buyer which included some of the world's best cricketers in Eoin Morgan, Steve Smith, and Aaron Finch. 

While the three star cricketers' exclusion was a surprise, the biggest shock of the auction came when veteran Indian batter Suresh Raina went unsold. In fact, Raina's name did not appear in the list of players brought back to the bidding table in the accelerated process on Day 2. Before the auction, many people had expected Raina's old franchise Chennai Super Kings' (CSK) to buy him. 

The MS Dhoni-led side brought a lot of players like Deepak Chahar, Ambati Rayudu, Robin Uthappa, and Dwayne Bravo back from their 2021 title-winning squad but did not put a bid for Raina. The left-handed batter popularly known as 'Mr IPL' has been associated with the franchise since the inaugural season in 2008. 

Explaining the decision to bid for Raina, CSK CEO Kasi Viswanath claimed that the franchise will miss players like Raina and Faf du Plessis but Raina did not fit into their team composition. Talking on CSK's Youtube channel, Viswanath said, "Raina has been one of the most consistent performers for CSK for the last 12 years. Of course, it was very difficult for us, no to have Raina but at the same time, you should also understand that the team composition depends on the form and kind of team which any team would like to have so that’s one of the reasons why we thought he may not fit into this team." 

"We will miss him, we will miss Faf who has been with us for the last decade, that’s the process and dynamics of the auction," added the CSK CEO. """
time: 0 ns (started: 2022-02-15 17:13:59 +05:30)