Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / How to securely store downloaded emails?

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Jan 2014 18:47
I decided I want to build an email client for fun, protocol from scratch and everything. The part I'm unsure of is how to store the emails locally. I was thinking of using sqllite but need a way to ensure they stay secure. I could encrypt the data or salt it before putting it into the database. Thoughts?

Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 24th Jan 2014 19:25
Password protected zip files? No, really!

nonZero
12
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 24th Jan 2014 23:45
Well if you had your own encoding for text (with export options) that'd obfuscate it at base level. I believe the de facto method of fast encryprion is XOR but with a little bit-shifting it's easy crackings. Maybe store them in blocks with a different lookup table per block. Dunno anything outside of C and not that clued up on networking stuff so I dunno how you'd implement it.

"You realise you're not nearly as funny as you think you are," said Onii-chan.

"I know that, which means I must be as funny as I think I am; in a paradoxical sort of way," I replied.
Indicium
15
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 25th Jan 2014 03:12
Quote: " I could encrypt the data or salt it before putting it into the database."


Perfect. Use some form of hash of the user's password as a decryption key and use public key encryption.


They see me coding, they hating. http://indi-indicium.blogspot.co.uk/

Login to post a reply

Server time is: 2024-05-07 13:18:41
Your offset time is: 2024-05-07 13:18:41