[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  How to do AES encryption with Lua and MUSHclient revisited
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

How to do AES encryption with Lua and MUSHclient revisited

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page


Posted by Victorious   (85 posts)  [Biography] 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.
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[Go to top] top

Posted by Victorious   (85 posts)  [Biography] 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.
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[Go to top] top

Posted by Victorious   (85 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[Go to top] 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.


772 views.

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]