3 ms·
6) The password hashing scheme was trivially broken, that is, given the hash I could construct a password which generated the same hash. Take a look - it still
by tptacek 6y ago
6) The password hashing scheme was trivially broken, that is, given the hash I could construct a password which generated the same hash. Take a look - it still uses the same hash algorithm! https://github.com/unclebob/fitnesse/blob/master/src/fitness https://github.com/unclebob/fitnesse/blob/master/src/fitness...
What fresh hell is this?
private byte[] encrypt(byte[] lock, byte[] key) {
int keyIndex = 0;
for (int i = 0; i < lock.length; i++) {
byte lockByte = lock[i];
byte keyByte = key[keyIndex++];
lock[i] = (byte) (lockByte + keyByte);
if (keyIndex == key.length)
keyIndex = 0;
}
return lock;
}