int main()
{
char password[] = "password";
char str[]="123456789";
for (int i = 0; i < strlen(str); i++)
{
str[i] += password[i%strlen(password)];
}
printf("encode:%s", str);
for (int i = 0; i < strlen(str); i++)
{
str[i] -= password[i%strlen(password)];
}
printf("decode:%s", str);
return 0;
}