#include <iostream>
#include <string>
using namespace std;
void enString(string& text)
{
string enText = "";
int charNum = 0;
for(int i=0;i<text.length();i++)
{
charNum = int(text[i]);
#CENSORED CODE#
#CENSORED CODE#
#CENSORED CODE#
#CENSORED CODE#
enText+=char(charNum);
}
text = enText;
return;
}
void deString(string& enText)
{
string text = "";
int charNum = 0;
for(int i=0;i<enText.length();i++)
{
charNum = int(enText[i]);
#CENSORED CODE#
#CENSORED CODE#
#CENSORED CODE#
#CENSORED CODE#
text+=char(charNum);
}
enText = text;
return;
}
#include <iostream>
#include <string>
#include "stringEncryption.h"
using namespace std;
int main()
{
string text= "My string to be encrypted!";
cout<<"Text: "<<text<<endl;
enString(text);
cout<<"Encrypted Text: "<<text<<endl;
deString(text);
cout<<"Encrypted Text: "<<text<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Text: My string to be encrypted!
Encrypted Text: →FÝ@A?6;4ÝA<Ý/2Ý2;0?F=A21¯
Encrypted Text: My string to be encrypted!
Press any key to continue . . .
#include <iostream>
#include <string>
using namespace std;
void enString(string& text)
{
string enText = "";
int charNum = 0;
for(int i=0;i<text.length();i++)
{
charNum = int(text[i]);
#CENSORED CODE#
#CENSORED CODE#
#CENSORED CODE#
#CENSORED CODE#
enText+=char(charNum);
}
text = enText;
return;
}
void deString(string& enText)
{
string text = "";
int charNum = 0;
for(int i=0;i<enText.length();i++)
{
charNum = int(enText[i]);
#CENSORED CODE#
#CENSORED CODE#
#CENSORED CODE#
#CENSORED CODE#
text+=char(charNum);
}
enText = text;
return;
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.