David's Super Nifty Secret Decoder Ring!
Wow ! Do they not at all make it easy to do what should be some simple string manipulation here !
what's going on ?
more work than I had hoped for lemme tell ya. however, it works, it's perfect and I doubt very seriously anyone worth their salt can crack the code to an encrypted message from this particular program as it uses random seed to build with.
That sorta thing is really difficult to reverse-engineer but - stranger things have happened.
Don't bank all your jewels on this, but I think it's a good encryptor for when we start to write those cool text adventures.
No sense in giving up the whole story by snooping eyes in your source code. :)
They used a simpler method similar to this when you would type out a text adventure from a book so as not to give the whole plot away as you enter it in.
Pretty sure these routines will be useful to you and others.
Questions, Compliments, or Kerosene, take your pick and stick it below. Send me some stars too maybe ? :)
So, I've tried running this in my browser multiple times - and the key it generates is the same every time. Is there functionality in Pico-8 to make sure a different seed gets used every time on startup? Are you purposely using the same seed every time? I don't have Pico-8 at work ( :^P ) and I'm not looking at the source code. I know GameMaker (which i use for bigger projects) allows you to always use the same seed at startup - it helps for debugging - and then to also make sure a different one is used every time once you publish.
Nice pixel work on the ovaltine jar! "A crummy commercial?? Sunuvab*!"
I'm purposely using the same seed number every time to demonstrate that it can be used for ANY seed number for encryption and decryption.
Here, let me make a version where the seed is randomly generated.
... try this one. You get a different KEY made each time.
UPDATE 10-10-16 11:25am
Thank you, Sull !
I'm working on a keyboard input library ATM, but when I finish, I did want to mess around with this a bit more.
[Please log in to post a comment]