Basically I am trying to make a small encyption program, however, I'm trying to find a way to be able to ask the user to input their sentence/sequence and then the program will replace every letter/number/symbol in the sequence with the encryption key, but I'm not sure how I would do that.
A = '@'
B = '`'
C = ':'
D = '$'
E = '%'
F = '^'
G = '&'
H = '*'
I = '('
J = ')'
K = '-'
L = '_'
M = '+'
N = '='
O = '!'
P = '~'
Q = '9'
R = '5'
S = '2'
T = '6'
U = '1'
V = '8'
W = '7'
X = '4'
Y = '?'
Z = '/'
a = '@!'
b = '#$'
c = '%^'
d = '&(d)'
e = '!@'
f = '~~'
g = '*('
h = '+)'
i = '<3'
j = '[]'
k = '{}}'
l = '||'
m = '*£'
n = ';n;'
o = '/['
p = '^('
q = '{£'
r = '>_<'
s = '\_/'
t = '-:-'
u = '^%^'
v = '/\'
w = '\|'
x = '&('
y = ':<'
z = ',.'
def encryption():
sequence = str(input("Please input the sequence you want encrypted. "))
Also don't worry the program is nothing serious, hence why I can share the key .
Any help and explanations would be greatly appreciated, I'm still learning.