Encrypt AwayMsg 1.0 LUA 5.1x [Strict] [API 2]
 

Encrypt AwayMsg 1.0 LUA 5.1x [Strict] [API 2]

Started by slinky, 23 June, 2008, 00:55:38

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

slinky

This script is very handy and easy to use. However, I'd like to be able to assure hub members of their privacy by encrypting the contents of OfflineMsg.tbl.

I can't find any advice about how to do this, and I have no idea if it is real easy to add such functionality or not.

Can anyone help?

:)

slinky

Thanks very much for the swift reply, guess I'll just have to wait! :)

Toast


slinky

#3
Quote from: Toast on 23 June, 2008, 06:11:02
huh and the purpose of this would be ?

Quote from: slinky on 23 June, 2008, 00:55:38I'd like to be able to assure hub members of their privacy by encrypting the contents of OfflineMsg.tbl.

Currently the contents of offline PMs can be read by the person hosting the hub.

bastya_elvtars

You cannot encrypt with MD5. I usually encode it into base64 which gives a sense of security. :-P
Everything could have been anything else and it would have just as much meaning.


slinky

For my needs for this particular script it is more to assure members, should they bring it up, that their messages are saved as gobblydigook and can't be read by the hub owner. It doesn't have to be totally unbreakable. It's not like I am going to look at the offline PMs anyway.

I'm not up on the difference between obfuscation and encryption. I just need gobblydigooktion.  :)

Scanning

You need encryption the entire way, from user, to hub and from hub to that user that gets the message, everything can be *read* by using a packet sniffer along the way. Sounds like it's better for you to tell them to not post secret stuff in messages on internet/hub

bastya_elvtars

Not usual, but a base64 implementation for Lua is readily available on the WWW. :) LuaSocket also has it.
Everything could have been anything else and it would have just as much meaning.

slinky

So then, can anyone give me tips on how to simply obscure/obfuscate the content of OfflineMsg.tbl? Or rather, can anyone provide the exact code or extras I need to add to this script?

Thanks :)

(Had a look at base64 but all Greek to me).

slinky


slinky

#11
I've discovered an issue with the base64 encoding. When an offline message is delivered, the message is presented with no problems, but the nick of the user who sent the message is random text/numbers. I assume the username has not been de-gobbledygook'ed. Can this be fixed?  :)

merlin_xl54

I use this great script without issues.

Quote
[21:29:10] <[AwayMsg]> Message set for offline user: Testnick!
[21:31:34] <[AwayMsg]>

  Currently online, Operator Testnick_master! left this message for you on: 07/12/08 21:29:10:
  Just a test message!
I removed the "..p.." and added Operator.


M
Living is easy with eyes closed.

merlin_xl54

Quote from: Mutor on 13 July, 2008, 04:57:37
Why did you do that?

Just tweaked for Private Hub. 

It was confusing for some users. Anyone with a key is called an Op. They don't know about profiles. All Op's have master profile. Certain users are given Operator profile but limited. No key, modified commands etc. We wanted the message to say from Operator not Master...

I didn't think it would make a difference in how the script worked. I can change it if you think it is necessary.

M
Living is easy with eyes closed.

SMF spam blocked by CleanTalk