Skip to content

Commit

Permalink
Update Encrypt-and-Decrypt-Data
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphmatthew authored Sep 22, 2023
1 parent e83db6b commit 4baa5f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Encrypt-and-Decrypt-Data
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#Data encrypting
#This code allows the user to encrypt and decrypt specific words or phrases (e.g: th& q!#ck br+wn f+x j!mps +v&r th& l*zy d+g).
#It should be specific or else the code will not proceed.

#DATA ENCRYPTING
print("Problem 1")
a = input("Kindly enter the string 'the quick brown fox jumps over the lazy dog' to encrypt: ")
b = "the quick brown fox jumps over the lazy dog"
Expand All @@ -12,7 +15,7 @@ while a == b:
break


#Data decrypting
#DATA DECRYPTING
print("\nProblem 2")
a = input("Kindly enter the string 'th& q!#ck br+wn f+x j!mps +v&r th& l*zy d+g' to decrypt: ")
b = "th& q!#ck br+wn f+x j!mps +v&r th& l*zy d+g"
Expand Down

0 comments on commit 4baa5f1

Please sign in to comment.