Conteúdo do Curso
Cyber Security Fundamentals
Cyber Security Fundamentals
Challenge: Implementing Caesar Cipher
Tarefa
Now, we will implement a simple function that provides data encryption using Caesar cipher.
Your task is to:
- Check if the character is alphabetic inside the
for
loop of thecaesar_cipher()
function. Use the.isalpha()
method to do it. - Set the value of the
key
variable equal to3
. - Call the
caesar_cipher()
and specify the required arguments (plaintext
andkey
).
Note
To provide decryption, we can use the same function but with other arguments:
caesar_cipher(encrypted_text, neg_key)
whereneg_key
=- key
.
Obrigado pelo seu feedback!
Challenge: Implementing Caesar Cipher
Tarefa
Now, we will implement a simple function that provides data encryption using Caesar cipher.
Your task is to:
- Check if the character is alphabetic inside the
for
loop of thecaesar_cipher()
function. Use the.isalpha()
method to do it. - Set the value of the
key
variable equal to3
. - Call the
caesar_cipher()
and specify the required arguments (plaintext
andkey
).
Note
To provide decryption, we can use the same function but with other arguments:
caesar_cipher(encrypted_text, neg_key)
whereneg_key
=- key
.
Obrigado pelo seu feedback!
Challenge: Implementing Caesar Cipher
Tarefa
Now, we will implement a simple function that provides data encryption using Caesar cipher.
Your task is to:
- Check if the character is alphabetic inside the
for
loop of thecaesar_cipher()
function. Use the.isalpha()
method to do it. - Set the value of the
key
variable equal to3
. - Call the
caesar_cipher()
and specify the required arguments (plaintext
andkey
).
Note
To provide decryption, we can use the same function but with other arguments:
caesar_cipher(encrypted_text, neg_key)
whereneg_key
=- key
.
Obrigado pelo seu feedback!
Tarefa
Now, we will implement a simple function that provides data encryption using Caesar cipher.
Your task is to:
- Check if the character is alphabetic inside the
for
loop of thecaesar_cipher()
function. Use the.isalpha()
method to do it. - Set the value of the
key
variable equal to3
. - Call the
caesar_cipher()
and specify the required arguments (plaintext
andkey
).
Note
To provide decryption, we can use the same function but with other arguments:
caesar_cipher(encrypted_text, neg_key)
whereneg_key
=- key
.