Encryption using ord() and chr() in Python [Part 2]

preview_player
Показать описание
In this lesson we look at an alternative way to encrypt a string. This time we use Python's ord() and chr() functions and make use of the ASCII values for each of our letters.
Рекомендации по теме
Комментарии
Автор

Hi, I want to make the + 5 input so that the user can input his own number and the encrypted code both with upper and lowercase letters. Can you tell me how?

norbert
Автор

What if i have the ascii value (for ex. 104101108108111 = 'hello') and i wanted to decipher it to its chr value?

prayushdawda
Автор

i cant get it to decrypt can you make make a video for this to include both process in one

samuelgilbert
Автор

How would you do this as a recursive function?

mollyandr
Автор

So well explained and first time I understood this. Can you explain why I see some people use a mod 26 in their expression. What does this do?

westfield
Автор

Great post. Question...what if you have a secret key made up of some value? How would you implement this?

lamarts