Earlier quoted context omitted.
Yes, I will install ssl cert in future (at least self signed), understand the risk. Standalone bookmark is great idea, but I am not sure if I can fit script to 2048 bytes. Maybe, I'll make html5 cache manifest to avoid network access.
You would be able to get past 2048bytes using mozilla or chromium See there: https://www.squarefree.com/bookmarklets/limits.html I just tested a 1Mb bookmarlet on chromium and it works.
My weekend project - AES encryption for Gmail or anything else
21–30 of 71 posts
Re: My weekend project - AES encryption for Gmail or anything else
#22Re: My weekend project - AES encryption for Gmail or anything else
#23Re: My weekend project - AES encryption for Gmail or anything else
#24Earlier quoted context omitted.
I use counter mode with 256 bit key Key is generated as sha256 hash of the user password
That's also not a secure way of generating an AES key; those crypto keys can be cracked quickly. The problem you're trying to solve is the entire reason for PBKDF2. You should also use SJCL's AES.
Here's the link: http://bitwiseshiftleft.github.com/sjcl/
Re: My weekend project - AES encryption for Gmail or anything else
#25Re: My weekend project - AES encryption for Gmail or anything else
#26Earlier quoted context omitted.
Yes, I will install ssl cert in future (at least self signed), understand the risk. Standalone bookmark is great idea, but I am not sure if I can fit script to 2048 bytes. Maybe, I'll make html5 cache manifest to avoid network access.
Don't do your self the disservice of self-signed - you can get a free cert from startssl. The CA landscape has changed.... what used to be expensive and required a lot of paperwork is getting cheap/free, and CAs are pushing "Extended validation" certificates and whatnot (the ones that turn your browser bar green, etc....) Just hit up startssl and get a real certificate... it's that easy. No strings attached. (Repeati…
Re: My weekend project - AES encryption for Gmail or anything else
#27Re: My weekend project - AES encryption for Gmail or anything else
#28This is great, I was just thinking the other day that it should be possible to encrypt gmail messages. Now you should make it possible to encrypt GChat messages automatically when I hit Send, and then decrypt them when they are received, that way they are encrypted end to end, instead of just between my browser and the server :-)
Re: My weekend project - AES encryption for Gmail or anything else
#29Earlier quoted context omitted.
Yes, I will install ssl cert in future (at least self signed), understand the risk. Standalone bookmark is great idea, but I am not sure if I can fit script to 2048 bytes. Maybe, I'll make html5 cache manifest to avoid network access.
Even if you could somehow minify all of AES into a bookmarklet, you'd still lose any time any page this ran from requested HTML or JS from a non-HTTPS link, since any of those requests could poison the runtime.
Re: My weekend project - AES encryption for Gmail or anything else
#30Perhaps a way around that could be to enhance a text input field so that only the final encrypted message is written to it, so Google's app does not see the plain text.