GithubHelp home page GithubHelp logo

Comments (12)

ganlvtech avatar ganlvtech commented on June 11, 2024

不知道密钥就穷举或者统计吧。功能不在本仓库范围内。

from lua-simple-encrypt.

 avatar commented on June 11, 2024

hey how can i use this repo... there are no instructions in README.md

from lua-simple-encrypt.

ganlvtech avatar ganlvtech commented on June 11, 2024

@P-A-I-N

Just visit https://ganlvtech.github.io/lua-simple-encrypt/dist/index.html, select your file and then press the button. (You may need a translator)

This is a javascript tool, your lua won't be upload to any server. All things done on your own computer.

from lua-simple-encrypt.

 avatar commented on June 11, 2024

from lua-simple-encrypt.

ganlvtech avatar ganlvtech commented on June 11, 2024

Use Lua string.dump function to dump precompiled chunk. It's lua vm bytecode. It's better than my simple encryption. There is some lua decompilers, but it's still better than simple xor.

from lua-simple-encrypt.

 avatar commented on June 11, 2024

from lua-simple-encrypt.

ganlvtech avatar ganlvtech commented on June 11, 2024

This kind of encryption would only prevent most users from viewing your original code. Maybe you want to protect some data in a paid script from being redistributed. And it would also prevent people who don't know the password from executing the script.

But It won't prevent advanced "hackers". Even if you encrypt it by a really sophisticated and horible algorithm. Once you give them a key, they can executed the code. Who could execute the code would also avaiable for debugging the code.

The XOR encrypt is really simple. When your code's file is big enough. I can also analyse it by statistics. Because words like if, end would appears many time, it's possible to guess the encryption key. (This problem can be solve by using another algorithm.)

My conclusion is just let those who don't know about lua and the beginners don't debugging keep away from your original data.

It's really easy for me to write a decryptor for my program only if i got your key. When you don't have the key. XOR encrypt is also a little hard.

from lua-simple-encrypt.

 avatar commented on June 11, 2024

from lua-simple-encrypt.

ganlvtech avatar ganlvtech commented on June 11, 2024

ya...its true encryption is for protection....but can i make a encryption by my own ( for lua) btw im not a newbie in lua i make lua scripts for online games...like revo makes encryption for his own...can u teach me ?

In my opinion, if you could modify the lua engine., changing bytecode of the lua VM is a good way. it can prevent anonymous lua engine and decompiler.

There are two ways to make your own encryption. First is encode and decode. The second is break lua code into pieces, implement another vm in lua. I don't think there is an exact way to make your own protection. You just transform the code, making it unreadable but don't change the things you do.

from lua-simple-encrypt.

 avatar commented on June 11, 2024

from lua-simple-encrypt.

ganlvtech avatar ganlvtech commented on June 11, 2024

Maybe he just find some bug of unluac. It's true that unluac has bug, some opcodes will cause it enter an infinite loop. Not only for Revo's, a simple code may also.

I'm recently try to find a way to decompile his encrypted code. (but i don't have enough time to write decompiler)

from lua-simple-encrypt.

 avatar commented on June 11, 2024

from lua-simple-encrypt.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.