Search found 3 matches
- Fri Apr 25, 2014 9:37 pm
- Forum: Challenges Solved
- Topic: Didactic XOR Cipher 2
- Replies: 15
- Views: 2375
- Fri Apr 25, 2014 9:18 pm
- Forum: Challenges Solved
- Topic: Didactic XOR Cipher
- Replies: 1
- Views: 309
Code: Select all
for(int i = 0; i< s.size();i+=2)
{
stringstream str;
string byte = s.substr(i,2);
str << byte;
int num(0);
str >> std::hex >> num;
printf("%c",(num^KEY));
}
cout<<endl;
- Fri Apr 25, 2014 8:43 pm
- Forum: Challenges Solved
- Topic: Didactic XOR Cipher
- Replies: 1
- Views: 309