Hello,
I'm using the code from [url]http://lua-users.org/wiki/BaseSixtyFour[/url] as gLua only offers Base64 Encoding and not Decoding. I'm doing this as an practice because I really like Obfuscating/Encrypting. So the thing is, the Encryption seems to be working fine but the decryption looks a bit weird:
(UTF8)
[IMG]http://puu.sh/wptre/2b72767412.png[/IMG]
Anyone knows what causes that? Wrong file encoding? Doesn't look better on ANSI...
Thanks
Are you sure you're working with base64 here? Which, by the way, is an encoding and not encryption or obfuscation.
[QUOTE=Darkwater124;52381558]Are you sure you're working with base64 here? Which, by the way, is an encoding and not encryption or obfuscation.[/QUOTE]
Yes I'm pretty sure. I'm using the exact code from the Lua website, maybe I'm just giving the wrong input to the functions, "data" isn't supposed to be a string I guess?
And yes. It's an encoding, my bad, mixed things up. But if it'd work you can at least make it no longer readable for humans.
There are online base64 decoders, it takes roughly 2 seconds to convert it back.
Yeah but I want to do it with Lua
[QUOTE=Momox;52382036]Yeah but I want to do it with Lua[/QUOTE]
What's the point of massively increasing a file's size for something that people could revert to normal in a matter of seconds anyway?
Anyone who knows base64 exists and has seen it a few times can recognize base64, especially in 66% of the cases where there's == or = at the end. I get you just want to play around with this, but please never distribute your code like this. Given enough effort, players can steal literally anything (that's sent to the client), since you can't run code you aren't given.
[QUOTE=Darkwater124;52382120]Anyone who knows base64 exists and has seen it a few times can recognize base64, especially in 66% of the cases where there's == or = at the end. I get you just want to play around with this, but please never distribute your code like this. Given enough effort, players can steal literally anything (that's sent to the client), since you can't run code you aren't given.[/QUOTE]
Yeah I'm aware of this not being secure and I would never really use this as a serious "encryption" to protect my code. Just as I said: practice, I want to get more familiar with the more advanced string/bit/byte functions
On a side note if you want to "hide" your code you could use util.Compress , util.Decompress and CompileString. It'll decrease the file's size while at the same time making it unreadable.
Sounds Awesome, will look at it, thanks :)
Sorry, you need to Log In to post a reply to this thread.