3 ms·
I was horrified to see: public void encryptCreditCard(int[] cc) { int tmp = cc[0]; cc[0] = cc[6]; cc[6] = tmp; // and so on
by cjslep 10y ago
I was horrified to see:
public void encryptCreditCard(int[] cc) {
int tmp = cc[0];
cc[0] = cc[6];
cc[6] = tmp;
// and so on...
}
Decrypt version just did the steps in reverse, of course.
- TeMPOraL 10y agoI once had to implement "encryption" that consisted of rot13(base64(data)). The class ended up being named SecurityTheatreUtils, to ensure no one else in our team ends up thinking it does any actual encryption...