Page 1 of 4

Is luasec a thing?

Posted: Sat Feb 11, 2023 11:59 am
by togFox
I happened across this tutorial page:

Code: Select all

http://notebook.kulchenko.com/programming/https-ssl-calls-with-lua-and-luasec
and a google search leads me to this luasec github page:

Code: Select all

https://github.com/brunoos/luasec
That github page has two lua files: https.lua and ssl.lua. Those files require things like:

ssl
ssl.core
ssl.x509
ssl.config
ltn12
socket.http
socket.url
socket

They're not included in the github and google search can't find them. Has anyone used luasec in love2d?

Re: Is luasec a thing?

Posted: Sat Feb 11, 2023 3:20 pm
by zorg
Löve 12.0 will have SSL/HTTPS support inbuilt, and you can technically include the missing stuff into 11.4 as well, although idk where the steps for that was posted.

Re: Is luasec a thing?

Posted: Sat Feb 11, 2023 7:28 pm
by Andlac028
zorg wrote: Sat Feb 11, 2023 3:20 pm although idk where the steps for that was posted.
See lua-https on wiki, where is usage of module and also compilation instructions for older love versions.

Re: Is luasec a thing?

Posted: Sat Feb 11, 2023 8:43 pm
by ivan
zorg wrote: Sat Feb 11, 2023 3:20 pm Löve 12.0 will have SSL/HTTPS support inbuilt, and you can technically include the missing stuff into 11.4 as well, although idk where the steps for that was posted.
A few other people mentioned 12.0. Do you know where we could find a pre-release version of 12.0?
Going over the planned features from the wiki I really wish someday we would have:
- bcrypt
- zipArchive
- mysql
- location, camera and other phone features

Re: Is luasec a thing?

Posted: Sat Feb 11, 2023 9:04 pm
by GVovkiv
ivan wrote: Sat Feb 11, 2023 8:43 pm
zorg wrote: Sat Feb 11, 2023 3:20 pm Löve 12.0 will have SSL/HTTPS support inbuilt, and you can technically include the missing stuff into 11.4 as well, although idk where the steps for that was posted.
A few other people mentioned 12.0. Do you know where we could find a pre-release version of 12.0?
Going over the planned features from the wiki I really wish someday we would have:
- bcrypt
- zipArchive
- mysql
- location, camera and other phone features
And json support out of box...

Re: Is luasec a thing?

Posted: Sat Feb 11, 2023 9:43 pm
by Bigfoot71
ivan wrote: Sat Feb 11, 2023 8:43 pm A few other people mentioned 12.0. Do you know where we could find a pre-release version of 12.0?
Here: https://github.com/love2d/love/tree/12.0-development
No?

Re: Is luasec a thing?

Posted: Sat Feb 11, 2023 9:46 pm
by ivan
Yes, JSON would be good although it is fairly easy to implement using pure Lua.

Thank you Bigfoot, I will look into this!

Re: Is luasec a thing?

Posted: Sat Feb 11, 2023 9:49 pm
by Bigfoot71
For JSON there is already a pure Lua library that works very well: https://github.com/rxi/json.lua
Personally I don't really see why it should be implemented in Love2D, unless something escapes me.

Re: Is luasec a thing?

Posted: Sat Feb 11, 2023 10:02 pm
by togFox
Thanks for the reference to 12.0.

I'm not set up to compile 12 or 'hack' 11.4.

So no one uses luasec?

Re: Is luasec a thing?

Posted: Sat Feb 11, 2023 10:06 pm
by slime
ivan wrote: Sat Feb 11, 2023 8:43 pm Going over the planned features from the wiki I really wish someday we would have:
- bcrypt
- zipArchive
- mysql
These are generally out of the scope of a game API I think - although nothing's stopping you from packaging libraries for those with your own game. That being said you can already access the directory structure of a zip file (in memory or on your hard drive), via love.filesystem.mount.
togFox wrote: Sat Feb 11, 2023 10:02 pm I'm not set up to compile 12 or 'hack' 11.4.

So no one uses luasec?
luasec is notoriously annoying to build, for various platforms.

You can download automatically created builds of love 12 through the love repository's Github Actions page. For example a recent one is here https://github.com/love2d/love/actions/ ... #artifacts

For love 11, there's zero hacking involved to get lua-https working for it. It's just a lua C module, nothing special.