In 58 sec Python

Опубликовано: 26 Октябрь 2024
на канале: Machine Learning with Rohit Narwal
1,244
73

#pytohnProject #pythonforbeginners #shorts
********************** code code code code ***************************
password = "werty34567:"

algorithm_pattern = {
"a":"1", "b":"?", "c":"g", "d":"5",
"e":"y", "f":"j", "g":"0", "h":"6",
"i":"q", "j":"e", "k":"w", "l":"^",
"m":"*", "n":"#", "s":"7", "t":"9",
"w":")", "x":"(", "y":";", "u":"1",
"z":":", "3":".",
"4":"?", "5":"y", "6":"9", "v":"%",
"7":"L", "8":"D", "9":"Y", "0":"Q"
}

print("The old pass:", password)

new_pass = password[::-1]

for word, enc_form in \
algorithm_pattern.items():
for i in range(len(password)):
if new_pass[i] == word:
new_pass = new_pass.replace(
word, algorithm_pattern[word]
)
print("The new pass is:", new_pass)

********************** code code code code ***************************
Welcome To Our channel
In this video, you will learn to make your personal algorithm to protect your passwords from hackers.
So consider Giving a video a like, share it with your friends and Subscribe to our channel too for more videos.
Instagram:   / rohitnarwal7988