5 ms·
I don't 'get it': For public key cryptography, the basic math is well known. Then what's needed is some code. The core code for just the en/decryption is qu
by graycat 13y ago
I don't 'get it': For public key
cryptography, the basic math is
well known. Then what's needed
is some code. The core code for
just the en/decryption is quite
short. So, just write the core
code yourself, directly from the
math and/or open source code --
be 100% sure understand each
statement of code do write.
Then
turn the en/decryption code into
just a simple command line program
that reads a file and writes a
file -- no opportunity for the
spooks to corrupt that code either.
Then call it done. So, for e-mail,
type some text into a simple file, wash it through
own command line encryption software,
get out the file of simple text of the base
64 of the encryption, pull that
text into the e-mail program, and
send it.
I'm not 'getting it' on just where
the security vulnerability is here.
Again, the crucial point is that the
core en/decryption code is darned
short, quite close to the well
known math, and can be checked
against some open source code.
Then, if everyone writes their own
code in this way and discovers that
they are 'interoperable', then
everyone knows that they did good
work even if they never actually
share code.
I'm not getting why this can't work?
- revelation 13y agoRight, so you go on Wikipedia and implement RSA. You understand every single thing you do. Oops. You forgot padding. Because of some strange identity that applies to the simple math you just implemented straight from the textbook, all your encrypted data can be trivially decrypted.
- dllthomas 13y agoOr even if you get the algorithm correct, maybe you forgot to handle all the memory the key touches special and it's swapped to disk. Or maybe your implementation is vulnerable to timing attacks or something more obscure.
- graycat 13y agoJust trying to send some text via e-mail, so swaps to disk and/or timing attacks should not work. That is, not trying to encrypt streams of voice or video, and do assume that the computer used for the de/encryption is 'secure'.
- dllthomas 13y agoThe problem with it being swapped to disk is that it means the decrypted form of your key (you're storing it encrypted by a passphrase, right?) is now persisting while your computer is off, which exposes it to more threats (someone images your disk when you take your computer in for repair). Timing attacks would certainly be harder if you're never signing anything in a situation the attacker controls, but I'm leery about claiming nothing could be done.
- graycat 13y ago> decrypted form of your key (you're storing it encrypted by a passphrase, right?) Haven't yet implemented the little de/encryption command line program l described so don't know just how I'd store my private RSA key. The private key would likely be just on my computer some place as just ordinary data maybe with a comment that clearly describes the data as my private key. I'm not sure what you mean by a "passphrase", but I can guess; with my guess, no, I wouldn't do that because (1) it makes life harder for me and (2) doesn't really make decrypting my data much more difficult for an attacker. > when you take your computer in for repair Right, if I lose physical control of my computer, then all or nearly all the data I encrypted can now be decrypted by others. So, right, for anyone who would lose physical control of his computer for any reason, the 'approach to computer security' I outlined would have a huge hole in it. In my case, I would never take my computer for repair since I built and repair my own computer.