Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ Lua
➜ How to do AES encryption with Lua and MUSHclient revisited
How to do AES encryption with Lua and MUSHclient revisited
|
Posting of new messages is disabled at present.
Refresh page
Posted by
| Victorious
(89 posts) Bio
|
Date
| Thu 09 Nov 2017 06:04 PM (UTC) |
Message
| Hi,
There's an article on the forum about how to do this but its from 2004.
Given that AES is now widely available, can this functionality be built into mushclient, and/or the guide updated? Its now pointing to 404 urls, and using lua 5.0. | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #1 on Fri 10 Nov 2017 08:03 AM (UTC) |
Message
|
Quote: can this functionality be built into mushclient
Can, yes. Should, probably not.
http://lua-users.org/wiki/CryptographyStuff |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Victorious
(89 posts) Bio
|
Date
| Reply #2 on Fri 10 Nov 2017 08:08 AM (UTC) |
Message
| It would be extremely helpful for things like private communications. I've also gone through every link of that page but haven't managed to find something that would work with mushclient.
The closest I got was aeslua which works for me in my system's lua interpretor (it relies on the bitlib module that I separately installed with luarocks, but mushclient isn't able to load the .dll for some reason even with the right cpath set. | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #3 on Fri 10 Nov 2017 08:29 AM (UTC) |
Message
| If you are failing to load a DLL, run Dependency Walker on it and make sure that it's not missing a dependency. I load DLLs all the time. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Victorious
(89 posts) Bio
|
Date
| Reply #4 on Fri 10 Nov 2017 09:30 AM (UTC) |
Message
| It worked when I replaced the built-in lua dlls with the same ones as my local installation, so maybe it needs to use the same minor version as the built-in mushclient's lua for it to work.
One last thing is now the library i'm trying to use has a c extension named "bit", which also conflicts with mushclient's bit library. | Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #5 on Fri 10 Nov 2017 10:49 AM (UTC) |
Message
| Apart from what Fiendish mentioned, I was wary of embedding encryption into MUSHclient because of all the carry-on about encryption being a munition and possibly getting into trouble for exporting it.
See, for example: What laws or restrictions exist regarding export of encryption products from Australia?
I gave some ideas (https://www.gammon.com.au/forum/?id=4988) for how to do encryption, without actually supplying the files. Thus, anyone that wants to do it can get into trouble with their governments themselves rather than it being my fault.
If the links don't quite work, it should be easily fixable. AES encryption is widely used and there should be reference implementations around, plus probably ones that work faster or more compactly than the reference version. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #6 on Fri 10 Nov 2017 08:59 PM (UTC) |
Message
| One thing I'm not sure I understand is what is meant by "extremely helpful for things like private communications."
Private communications where and between whom? Because I use TLS all the time in MUSHclient with luasocket, lua-openssl, and lua-llthreads2. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
21,453 views.
Posting of new messages is disabled at present.
Refresh page
top