View Issue Details

IDProjectCategoryView StatusLast Update
0007142Multi Theft Auto : San AndreasScriptingpublic2014-04-09 18:36
Reporterrobhol Assigned Toryden  
Status resolvedResolutionfixed 
Target Version1.3.5Fixed in Version1.3.5 
Summary0007142: Provide simple encryption functions?

Currently, there is no decent way to encrypt and decrypt stuff - we don't have access to third party libraries (which is probably a good idea) - and implementing an algorithm in Lua is both extremely slow and somewhat infeasible due to the lack of bitwise operations etc.

Since we've had access to MD5 and SHA1 for a long time, how about some AES or something similar? Finding a decent implementation is almost impossible in Lua, but should be a walk in the park for C++.

TagsNo tags attached.



2012-06-29 17:56

reporter   ~~0016919

Last edited: 2012-06-29 17:58

Like that?

Yes, consider it slow.
Implemented in C++ it would be 100 times faster.


2012-06-29 18:00

reporter   ~~0016920

Not bad, but a C++ implementation of AES or something would be even not-badder. :)
Of course, the weakest link in a setup like this would most likely not be in the choice of algorithm.

Would be faster though, and probably not a lot of work.


2012-06-29 18:01

reporter   ~~0016921

I'd approve of AES since its open-source.
Once upon a time I implemented it in Java, so C++ shouldn't be an issue.


2014-04-09 18:36

manager   ~~0020636

Which got added to 1.3.5:

Issue History

Date Modified Username Field Change