|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
05-24-2008 10:18
i was thinking about this with my radios ive been making but im not having to much luck, ive been playing with llXorBase64StringsCorrect and llStringToBase64, here is what i had so far
llRegionSay(20,llXorBase64StringsCorrect(llStringToBase64(message)); im sure im doing it completly wrong and this to decrypt llBase64ToString(llXorBase64StringsCorrect(message));
anyone know how wrong im doing it or am i not geting the concept rigth?
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
05-24-2008 10:58
Here's a toy example. default { touch_start(integer total_number) { string secret_message = "Behold the power of cheese."; string unbreakable_password = "password";
string message64 = llStringToBase64(secret_message); string password64 = llStringToBase64(unbreakable_password);
string munged = (llXorBase64StringsCorrect(message64, password64));
string decoded = llBase64ToString(llXorBase64StringsCorrect(munged, password64));
llOwnerSay("original: " + secret_message); llOwnerSay("munged: " + munged); llOwnerSay("decoded: " + decoded); } }
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
05-24-2008 11:01
ah cool, got got the idea right just the strings and extra little bit got me, thanks
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
05-24-2008 11:21
[net error]ތ
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
05-24-2008 11:24
[fixed]ތ
|