I am trying my first encryption program and I want to convert the letters to numbers then do an equation to change the numbers. Then when the encryption is done it should be a bunch of random numbers then the decryption should come back to normal (what the user input in the first place). Heres what I have so far, any help will be greatly appreciated (the code is very sloppy).
#include <iostream>
using namespace std;
int main () {
char letters;
char a ='a';
char b ='b';
char c ='c';
char d ='d';
char e ='e';
char f ='f';
char g ='g';
char h ='h';
char i ='i';
char j ='j';
char k ='k';
char l ='l';
char m ='m';
char n ='n';
char o ='o';
char p ='p';
char q ='q';
char r ='r';
char s ='s';
char t ='t';
char u ='u';
char v ='v';
char w ='w';
char x ='x';
char y ='y';
char z ='z';
cout<<"Please enter the words you want to encrypt: ";
cin>>letters;
letters = (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z);
a = '1';
b = '2';
c = '3';
d = '4';
e = '5';
f = '6';
g = '7';
h = '8';
i = '9';
j = '10';
k = '11';
l = '12';
m = '13';
n = '14';
o = '15';
p = '16';
q = '17';
r = '18';
s = '19';
t = '20';
u = '21';
v = '22';
w = '23';
x = '24';
y = '25';
z = '26';
letters = letters * letters / letters + letters;
cout<<" The encrypted content is "<<letters<<endl;
}