Socket Packaging

David Bovill david.bovill at gmail.com
Mon Jun 24 15:01:35 EDT 2024


Yes,  I recently looked at a few reverse proxies. I now run Caddy on
localhost and have some scripts to manage caddyfiles and starting and
stopping the caddy server. Happy to show share if interested in a Zoom.

On Mon, 24 Jun 2024 at 18:56, Mike Kerner via use-livecode <
use-livecode at lists.runrev.com> wrote:

> have a look at caddy. it allows you to reverse proxy and have the best of
> both worlds:
> * server traffic to and from caddy is in the clear, so less mess
> * caddy handles all the cert silliness, while also giving you ssl to/from
> the clients
> we've been doing this for two years (maybe it's three, now). it works
> great, and i never have to think about it.
> also, the configuration was really, really simple.
>
> On Mon, Jun 24, 2024 at 12:23 PM Bob Sneidar via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> > Hi all.
> >
> > I came up with deceptively simple wrappers for packaging data for
> > transmission over raw sockets. I can’t send the slyEncrypt and slyDecrypt
> > handlers because I use methods no one else knows. But you can roll your
> own
> > or else eliminate encryption altogether.
> >
> > And to answer the question befor it’s asked, I don’t use SSL because I
> > don’t like having to deal with certificates, and also because I use a
> > method for encryption that I don’t think anyone else has thought of, or
> at
> > least I can’t find any info online.
> >
> > Bob S
> >
> > command packagePayload @pPayload, pUseEncryption
> >    if pPayload is an array then \
> >          put arrayEncode(pPayload) into pPayload
> >
> >    if pUseEncryption then \
> >          put slyEncrypt(pPayload) into pPayload
> >
> >    put base64Encode(pPayload) into pPayload
> > end packagePayload
> >
> > command unpackPayload @pPayload
> >    put base64Decode(pPayload) into pPayload
> >
> >    if pPayload begins with "salted" then \
> >          put slyDecrypt(pPayload) into pPayload
> >
> >    try
> >       put arrayDecode(pPayload) into tResult
> >       put tResult into pPayload
> >    catch tError
> >       -- not an array
> >    end try
> > end unpackPayload
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>    and did a little diving.
> And God said, "This is good."
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


More information about the use-livecode mailing list