上传者: ypp19900822
|
上传时间: 2022-10-12 19:55:52
|
文件大小: 774B
|
文件类型: CPP
#include "utility.h"
#include "Encrypt.h"
int main(void)
{
int select=1;
char source[256],destination[256];
Encrypt objEncrypt;
while(select!=3)
{
cout<<"请选择:"<>select;
switch(select)
{
case 1:
cout<<"请输入文本串:";
cin>>source;
strcpy(destination,objEncrypt.EnCode(source).CStr());
cout<<"加密串"<>source;
strcpy(destination,objEncrypt.DeCode(source).CStr());
cout<<"解密串:"<