비제네르

it/programming

[C++] 비제네르(Vigenere) 암ㆍ복호화 프로그램

#include #include #include void space(){system("cls");printf("\n\n\n\t\t");} void main() { int i=0, j=0, keys=0, strs=0, select=0; char str[100] ={0,}; char key[100]={0,}; space(); printf("평문 또는 암호문을 입력하세요 .\n\t> "); gets(str); space(); printf("암호문은 1번 복호는 2번 : "); scanf("%d",&select); space(); printf("키 값입력 : "); scanf("%s",key); strs= strlen(str); keys= strlen(key); for(i=0;i='a')&&(str[i]

반응형
훈솔
'비제네르' 태그의 글 목록