The Mayor
2015-01-29 05:21:45
This was originally posted as a bug in the SRL-6 section as Rafiki can encrypt your army. The problem is when you decrypt the army string, only 1 player will show up even if you had more than 1 player in the army. The reason it does this is because any text longer than 189 characters will get cut off. I'm not sure if this is during encryption or decryption. It's not lape as I get the same result using PS.
Here is an example, you can see the last few characters of the string get lost:
Here is an example, you can see the last few characters of the string get lost:
program template;
var
data: String;
begin
data := '123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 Opps it broke!';
writeLn('Before: ' + data);
writeLn(length(data));
rc2_encrypt('pw', htSHA512, data);
writeLn('After encrypt: ' + data);
rc2_decrypt('pw', htSHA512, data);
writeLn('After decrypt: ' + data);
writeLn(length(data));
end.
Before: 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 Opps it broke!
194
After encrypt: tFMIdlsx26/NvmiwBsodE+tueb62AhWv5R1ChG4VqN3EPZ9yd9/aME39Wk7LFackXhgL0zfj+Q5NXVPM2mfQ35QbWW/Y8YBUkKaq3/miHKw+rk6zVCg+I3OpGKx/4Bs9hXulMGQCleTcWCEcsJTbdBmY6aDLR341UIBka4V1Z53ghlaBPzWzpME50JmOCPPEYa0AB5OSHt9petF1PWOxiD4l2+AucWfFbjQ5EhhnkgcviQv9q+ZFh1fHMEGURWu
After decrypt: 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 Opps it b
189