Intro to Encryption
An anonymous reader submitted a Techworld story which is a sort of encryption primer. The difference between codes & cyphers, and what all those acronyms like RSA and DES actually mean. This is good primer material for newbs, and a good refresher for fogeys.
svefg cbfg!
Certificates are 1024 or 2048 bit with SSL. On the other hand, once the key is sent and shared, a 128 bit symmetric form of encryption is used. The only thing RSA is used for is sending / receiving the symmetric encryption key, yes?
Correct me if I'm wrong.
/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i
I would strongly recommend the Code Book by Simon Singh over that short article. It takes the reader from the Ceaser cipher all the way to quantum codes and is a very enjoyable read. The Codebreakers by David Kahn is also an excellent though somewhat lengthier volume
That's easy. Code is what I stare at all day, while Cypher is the jerk who betrayed Neo in The Matrix. Duh.
You have two hands and one brain, so always code twice as much as you think!
This primer is garbage.
Rest assured that unless some one finds a mathematical back door that the algorithms approaching 1024bits will not be the weakest link in the security of your data (at least with hardware today). Just have a look at the key space in Distributed's RC5-72 vs. RC5-64. The key space for RC5-72 is astronomically higher than RC5-64.
Usually, the weakest link will be the user using short keys or the user using the same password on a weaker system.
d6a6bc0db10694a2d90e3a69648f3a03 8a89706b1ce31bc803bfde8cee6587db 0f4b65803f78b51e8946d4506ae62473 b99b64cc909c4efcb609ad83fba84a55 719ffbccd1f60fabb76192606929585c
http://shit.slashdot.org/article.pl?sid=04/11/15/1 935233
The Handbook of Applied Cryptography: http://www.cacr.math.uwaterloo.ca/hac/ is a very detailed guide to some cryptographic algorithms and theories. This is not for newbies at all. For those wanting to implement a particular cipher, this book is the place to refer to. On top of everything, it is free.
Nyy V'ir rire arrqrq jnf tbbq byq EBG13. :)
AnimeNEXT anime convention
...SSL and TLS, which includes an introductory that has a nice overview of encryption concepts and techniques.
The explanation of stream vs block ciphers is especially good, with nice examples showing how each technique works.
The Army reading list
If after reading the intro to encryption you are so inspired to try to crack one, I highly recommend this list:
http://www.elonka.com/UnsolvedCodes.html
Enjoy.
- tokengeekgrrl
What is the point of all these different encryption methods? No one has ever broken PGP. No one has ever broken GPG. No one has ever broken a well-protected OTP cipher (and they never will.) Why do they keep churning out new ones when the ones we have work?
**This begins my ever-changing sig
We need a -1 RTFA moderation option!
**This concludes my ever-changing sig
That's some clever way of saying "crap", right? This article is horrible, and if I was an encryption newbie all I'd be able to do after reading this article is spout acronyms.
/. front page?
Here's part of what the article says about RSA:
"Unfortunately, nothing in life is free, and so it is with asymmetric cryptosystems. Since d can be computed from e given p and q, and p and q are the factors of N, they must be chosen so large that N cannot be factorised in any reasonable time"
THE ARTICLE NEVER STATES WHAT d, p, q, e OR N ARE. Sorry for the shouting but this piece o'crap is worthy of a
John.
Here is the coralized link (coral cache):
coral cache link to article
When I want to email with a new friend using PGP encryption, I send him my key one character at a time via snail mail using newspaper clippings. The only time this becomes a problem is when the post office laps itself and delivers more than one letter a day, or gets an earlier letter there later than a later letter, but it's the only way to be sure the key never falls into enemy hands. Of course, I don't get to email many people these days...
Fun with Inkwell | www.coo
Let's say you are 8 years old and you know next to nothing about computing in general and the word 'encryption' piqued your interest. It is at this point that I would guide you to this so-called "primer". WTF do the editors do all day? You submit a well-written story with lots of information attached and you get rejected. You submit an 8 year old's intro to cryptography (i.e. "How to play Celebrity Cypher in your newspaper") and it makes front page. I hope those guys aren't paid to edit.
Bruce Schneier's Applied Cryptography is another excellent resource for all you crypto-geeks out there. It goes from the basics (including the substitution cipher presented in the article) through basic crypto (ENIGMA, DES) all the way up through state-of-the-art (don't think AES was in my 1st ed., but I believe it's in there now). He talks about everything from the theoretical to the practical, hash collisions to rubber-hose cryptography.
It comes with source too! You know you love source....
-1 erqhaqnag
Say tommorrow someone discovered an efficient technique for computing the prime factors of a composite. That would blow RSA and probably DSA out of the water - rendering most parts of PGP/GPG worthless.
Unless we have other asymetric ciphers to fall back on, then e-commerce would be wiped out.
Additionally algorithms with very low computational requirements are of particular importance since we need encryption that can run on smart cards, but cant be broken by super computers.
Anyone know if it is possible to create signatures that are smaller? Say 64-bits?
I'd point people here first, then to a few other links that other people have pointed out. The article linked is a bit terse for a newbie.
>>The present generation of web browsers use 128-bit keys
_ ________
>> so cannot be considered secure against a determined
>> and sufficiently well-resourced attack.
The 128-bit there is the symmetric cipher key length, RSA is
used for signature authentication and not encryption, key
exchanges occur via hand-shake algorithms ie: diffie-hellman
and derivatives there of...
a 128-bit symmetric cipher is actually very strong, for temporary
transit data ie: purchase data, cc numbers etc.
Arash Partow
_________________________________________
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about all things.
http://www.partow.net
Arash Partow's Philosophy: Be a person who knows what they don't know, and not a person who doesn't know.
"When I find myself in times of trouble, PKZ he comes to me.
Speaking words of wisdom, 'PGP, PGP.'"
Guaranteed! This comment 100% Anthrax free!
I got lost at "responsible data managers". WTF is that? I haven't heard of RDMs before...
-- If god wanted me to have a sig, he'd have given me a sense of humor.
I copied the URL from the wrong tab. Anyways I found a good site starting at GnuPG's site. Silly me, do a preview next time.
The primer seems a little overconfident about random ciphers being generally secure. Is it safe to say that most ciphers in use today aren't vulnerable to known plaintext attacks?
They are not unsolved codes, they are my drunken slightly rambling slashdot posts complaining about the inequity of life and how truly evil women who wont sleep with me are.
Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
What truth?
There is no dupe
f you just want to deter prying eyes a substitution cipher using multiple substitutions and several different substitutions schemes offers a reasonable level of encryption for virtually no computational effort. (This is the way Enigma works and after all, it did take Alan Turing to break it).
The Poles broke it, they even invented the "computers" (bombes) that automated the further breaking of it. Turing (not to diminish the contributions he made to BP) really just vastly improved on their methods and created a much more sophisticated machine to break it.
Finkployd
"PGP" and "GPG" aren't ciphers. They make use of them. They support multiple ciphers, which is a good thing if one is compromised. At least you have the ability to choose a "known" safe cipher. You also have ciphers with a different key size (112-bit 3DES, 192-bit AES, etc) so you can choose that as well.
As for the OTP, that's a completely different type of encryption. The key length has to be the same as the message length, and has to be completely random. That's not practical in the real world.
Ha! The weakest link will always be either the user or the administrators who are open to "social engineering".
I am *still* amazed that I can do things like verify who owns a bank account, get passwords reset, change addresses...
--LWM
yes, but we already have other ciphers to fall back on. If someone figures out how to compute prime factors, we can use those, and start developing new ones, but that is very unlikely to happen.
And why is my article modded flamebait?!
**This begins my ever-changing sig
We need a -1 RTFA moderation option!
**This concludes my ever-changing sig
Random pads with truly random data is unbreakable. The few times it has been broken has been due to human error (reusing the same random data stream). The US tracked some russian spies with this, they reused pads, and we found out there was a mole in the atomic bomb program.
That said, paddign with pseudo-random data is very unsafe. Breaking this type of encryption is typically one of the first homework assignments in cryptography courses. The article is either very fuzzy on this distinction, or plain out wrong, depending on how you read it.
Forgive my confusion of PGP and GPG being cyphers. I got my point across, I believe. IANA Cryptographer. And if OTP's are not practical in the real world, then why did they work so well for the military during the cold war?
**This begins my ever-changing sig
We need a -1 RTFA moderation option!
**This concludes my ever-changing sig
Factoring specifically has nothing todo with anything that can break DSA. Improvements in NFS related algorithms could however... Also we still have ECC and a few lattice algos left [NTRU anyone?]
I wouldn't worry too much about it though. While I expect new algorithms [probably not even NFS based] to be invented at some point it probably won't be tommorow.
Tom
Someday, I'll have a real sig.
If after reading the intro to encryption you are so inspired to try to crack one, I highly recommend this list...
The problem with challenges like "crack this uncracked cipher" is that the challenge is not realistic.
Most of these codes/ciphers give you no idea the process behind how they were generated. That's unrealistic: usually an analyst will have the algorithm that does the encryption (if not the key itself), either via open-source, reverse engineering of a public binary, legitimate purchase, or espionage.
Most of these challenges only give you a tiny piece of ciphertext. That's not realistic: if you're trying to break, say, SSL, you'll be able to get your hands on megabytes of transcripts, and you'll even be able to generate ciphertexts that correspond to plaintexts of your choice.
Most of these "ciphers" don't generalize to arbitrary messages. That's unrealistic. Sure, someone can design some ad-hoc cipher to encrypt the location of his buried treasure using landmarks, clever puns, and weird symbols. That's a far cry from being able to efficiently encrypt an arbitrary TCP/IP stream.
try this linke atures/index.cfm?featureid=993
http://www.techworld.com.nyud.net:8090/security/f
Coral Cache works!
If you want to be absolutely definitely sure that no one can intercept your communication with someone then here's what you do.
1) Get 600MB of random noise data from listening for extra terrestrials from for instance SETI.
2) Burn two CD's, give one to your friend. Keep the other.
3) Encrypt your message by superimposing it on that noise at a given location.
4) send the message as well as the location with the random location that you started copying the noise from (from the CD).
This message can _not_ be deciphered if you make sure that you never reuse the same random noise. Even if you reuse it it is hard.
In addition, if you at some point expect that someone is on to you, just burn the two CD's.
At that point those messages can _never_ be deciphered. Even if you try for a billion years.
Simple.
Unbreakable.
The Internet is full. Go Away!!!
One of my favorite classes was clasical algebra. I'm always glad to see some info about encryption and how it works. Thanks guys
I'm sorry but what part of rSOuSdrCxMg99vfs/2PHdYgx4yL2+ZiLTj2jDLSr8JgtHWOzOr xZ+RfGRialMKvZ
zM7n+MIamILwHIZUE57DVGVBOavWoTAAcTuV4KIKSXRLqL/s04 SNxfEOZ/ZhmYdS
Rc4wCqLOEQNJMO9J+9CgFmIjwcsKMLxRFSn1vQksGAna1TQnd2 ialyviaK5XEybj
A9+6XLfx/Nh0ZM2I/u9lSGZBKCBzh9tOfL6zNa8svjGgHPQnEo GThv7JLzX56S2r
nbk/7Wa0D9urgVTNCmkW8/pchjxNjmS8QGiAXiqStRS3ZWizNH CkQCyh2+hL9hR8
OLrWK3eY5GaQz8hK2J5SrqmlH0+IkIDPcEy7taB2xpsqRq5WTK eDbXSqVPn64qGM
ag9zksMHHJluAdSewxPpx0sLPuEKyxhm0fydOUTypNVDiz3wV7 bjDgNJWiYUdwcM
DIn7NfO8pMJpmNXxt+RZcVoeqRhxQsZVxUgnLvy003N0bZy4gp I+yJe0/UQPS3zY
tYBy4ntmrb8b9PNm+sAIc2kGQ+TUVad6Z4xT2BoDm70YOCVP7u mqCCrfwc019HHo
DUABcCTC/v3Wi/hbbt/53QYIVqDRBbLevOBzLMUJn6h3qeO+iB /v5euG5KBpITY1
q3G7cAS9ANPBR4k17Hlbrhfb1XTHpXqcKvgDznAl5+CkZwGYBQ JLKHqIjjGzZWo1
infoh+M24ncq8qLOQLkg6bHy9RgiSHhgVnzePOkMqXD3/Q5dES lfDKdegWOky4dg
z6PEJLoiEGN7EY2XvKI6tYnbblO0OB+7AJTso8TOH4ZFsX3DL/ jEvQ== didn't you understand?
Digital signatures definitely have something to do with cryptography but is in general not related to encryption.
They didn't work well, which is why modern cryptography was born. As far as practical goes, practical is a function of necessity.
OTP has the significant shortcoming of key exchange. You have to have a method of distributing keys that will not be compromised. This is extremely hard to do.
If the book ever falls into the wrong hands, then you have to throw everyones book out, and start over. You have to have access to your agents that are inside. Are you just going to send them their new book to the Kremlin, postmark Blechley Park?
It can be done, it is inprenetrible, but has huge risks and shortcomings.
Im off to Nth. Korea
-----BEGIN PGP MESSAGE----- Version: PGP 8.0.2 qANQR1DBwU4Dj5r5ZoruKWUQB/9FfBiGMyyZYrgg9jaezAFPQv EBWTNIl/J8mIK+
1lUy8q+oJYM3e+LTogfJaH1oEKplFnKuhhtz1jrEs0NmbOMB9X aO9EggppEw0r8S
W/JjKyGRySaddz29+GYL28TCW3RSKzXkavn+vzLmeLnWT5h+Nw 8PJjdAAvKSKvFy
Vp8lNFIhug7ZiX95dZrMfQE7lwVhFYu85uWWqzORwc/6it/1zD 6z6uuf5mK0jobJ
rMtSWbdJNtjAWkl8E2MaBVBeNBxiUZyN9FMzuLuadI+CUdUehG bXiQWkmGXy4mF0
bqSQILCycrKi3yPrLNtrimnGf48oRGjvN7vKywnMeKXoJRjdB/ 0bJESQ40nv6GLx
CDTKt7Ki4IRjXMrx/1SHqlUDwRR5Wb1pSOW+huAaAr7IceHlVM ZLBBddqBr04LjU
qiXQs18WM9LmDFyxhxw+1JkgPcDI7X8Zzl+JQGiadOg1lnz9sA h6hJSUOEDJimsv
wXpgANO6pEdUwaCMhzzQENPywHn9is+IkXnwdZeXNDn3V8ECzG j4Zxz4pWE23h74
EINwmbvUaSIWhD4dmR3xEyXvyuXaTxdj/co7mYLUpdlQgThEvR ZvBGnY+QMLRuq0
RhC7zdUB3s0affXolmvOeCm1nAwPlJlbYpDoDpf6IWYRjtkW2P jpffspd1KZPWP/
PQwPGYwU0sAoASaEO1siggkPO3Mb7Yt4kJ8Xexa2fGloU1u3wr 0jLCpl7os7sEwe
Tv/C46evluld7zBJ03QD/lEwhv/7TMXoblHGW0p9esL3w+hA4I UHKinjquLvM21e
pf/m6JJLQL9yjRlaOa8qHVUvd06OMTiI5n90Yt7FlvMT7LjPZn 1lq0fPFfhI7ZXS
+wKHET4r79tLGsUgamDP+F0JZ7nC3dlwsuQXHx7Ttb8bg8YE49 HdnZmw+jMbqCCO
AkpIl7XDBuBFWmUSpEO8gqpC7lMCecO6k2ujP9KklpCo4IEXQt KH41U1qm54s3mY
+w==
=ow71
-----END PGP MESSAGE-----
specifically "p and q are the factors of N", from fundamental theorem of mathematics. I didnt rtfa so i dont know if they define d or e.
Cryptography Decrypted by H. X. Mel and Doris Baker is a good intro to crypto. I found it entertaining and the topics went from elementary to, uh, more than I cared to know. The appendices explaining the mathematics of crypto were interesting as well.
"If you're not passionate about your operating system, you're married to the wrong one."
main(a){while(a=~getchar())putchar(~a-1/(~(a|32)/1 3*2-11)*13);}
I just put together part of an ecryption system for my job. I've got kind of a question about it, too --
I've heard that using more than one "encryption algorithm" can open you up to new vulnerabilities...
I need to encrypt certain short string in our database and I'm using 1024-bit RSA with OAEP, but I also need to be able to search for all occurences of a particular sting in the DB, so I'm also storing a (salted) MD5 hash of the same string that was encrypted, since the RSA-encrypted string is different even if the plaintext is identical, but the MD5 hash is the same when the plaintext is the same... I can compare based on MD5s and not need to keep the plaintext or even know what it was...
But does having the same string hashed with MD5 and encrypted with RSA open me up to any problems? Is there maybe a more clever way to address my needs (if I've even described the situation properly...)?
Simple, because you failed to include at least one of the following in your post:
Attention zealots and haters: 00100 00100
It talks about the origins of crypto a little, and leads into public key encryption, a field I have been trying to learn a little more about. Much better article than the parent!
You can have my one-button mouse when you pry it from my cold, dead fingers.
This may not be too big of a problem if we just have two people who need to send a few messages to each other as long as both can keep the pad safe, but it fails horribly in other situations. For instance lets say I want to send my credit card number to some online store, but I want to make sure it is encrypted first. Lets say the store writes a random pad for us to use. How do we share it? Somehow they have to get it to me without anyone else seeing it. But if we had a known secure method of communication, we wouldn't need the pad in the first place, now would we?
Public Key encryption solves this problem by allowing the store to develop the code and send me a key that only allows me to encrypt it (it can't decrypt anything). Thus it doesn't matter if the whole world intercepts the key, all that would allow them to do is encrypt more messages. It doesn't help them decrypt anything. Of course all these codes are usually based on problems that are mathematically hard to solve. If an easy solution is found (as with knapsack cryptosystems like Merkle-Hellman), then it becomes easy to crack the codes, and thus we need to have other codes available. In addition, many decryption algorithms are very slow and thus work is done on more efficient algorithms (though slow ones like RSA actually can be sped up by only encrypting a private key with the public key scheme and using the private key to encrypt the actual message).
Hope that helps.
Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
Actually its not. There is an efficient algorithm out there for factoring numbers into primes. The only problem is that it requires technology (quantum computers) which doesn't exist yet, but which is on the horizon.
"And why is my article modded flamebait?!"
Because mods are jackasses.
Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
Over at SourceForge is a relatively new Project called Primary Cryption. Working code (for Win32/WINE) has already been released. The source code includes hundreds of lines of commentary about encryption, C programming tricks, and other stuff that you might find interesting. The logo may be of interest, too. Some discussions about it have been started at the HalfBakery and at sci.crypt.research Oh, and if you want to put some effort into figuring out how easy (or tough) it is to break the proposed encryption scheme, feel free! I'd like to know. Thanks!
Wow that is pretty 'leet of you to do all that cracking. I bet you can't get this one
alksjf opiweop poweirqq sdnbfe!
Iyay etbay obodyyay ancay igurefay histay utoay!
Uggerbay, hatway oday ouyay eanmay "veryeay oneyay owsknay igpay atlinlay?"
Lbh jvyy qvr nybar.
I remember hearing they got around the crypto export laws by having it printed, instead of on floppies/CDs. Freedom of speech/press laws take precedence, apparently... clever. :-)
Assume I was drunk when I posted this.
Would somebody give me a clue about solving the level 5 unknown quest of arcanum.co.nz?
.nz hostname. :)
It's about making the script think you're really from new zealand, spoofing headers, using proxies and such. I haven't been able to solve that one, i already got all the other 3 from the level 5.
I learned a lot about encryption in that website, they used the ceasear cypher, xor encryption, and some other methods I didnt know back then. It was fun.
Is some of you from new zealand? I could also use a hand from somebody who has a
ROT-26:
first post!
ROT-27-X:
aaaaa aaaa!
ROT-Y:
fjtvx vvac!
About RSA: Current hardware means key lengths should be 1024 bits for complete security. The present generation of web browsers use 128-bit keys so cannot be considered secure against a determined and sufficiently well-resourced attack.
Firstly, directly comparing symetric and asymetric key lengths shows that the authour has no knowledge of encryption. They are not directly comparable since they are used in different ways and have different meanings.
Secondly, claiming 128-bit keys are insecure shows that the authour has no knowledge of encryption. 80-bit keys are widely considered infeasible to break.
Impatiently looking forward to next articles in the series, "Blind Typing" and "Introduction to Microsoft Word for accountants". ... information on folding cables is at least less available.
Different cryptosystems have different properties, some of which are incredibly useful. These examples are somewhat lame; I just pulled an all-nighter for the eurocrypt deadline.
Example 1: Partially homomorphic cryptosystems. Want to be able to add (or multiply, but not both) encrypted numbers? Now you can!
Example 2: What if you need the set of numbers that your cryptosystem encrypts to have some sort of mathematical structure? (a ring or a field or so on) For example, if you have polynomials where each coefficient is taken from a field, you can factor the polynomial. Trust me, it's useful. I would kill for this particular property right now. You can do incredibly cool things with polynomials. If anyone's interested, I have a brand-shiny-new paper.
Example 3: Key privacy. If I have two ciphertexts, I can still tell whose keys they're encrypted under, unless the cryptosystem is key-private. So evesdroppers might not be able to tell what you're sending to that anonymous remailer, but they can tell who you're sending it to.
Example 4: Faster encryption/decryption and shorter key-length. Randomness can be expensive to generate and transmit. OTP is only practical if you have a reliable offline method of sending key material (and a lot of it). What if your courier is killed? Does that mean an undercover agent can't tell his home base about a terrorist threat? A Paillier ciphertext is twice as long as the contents, but there's a pretty large minimum size there (related to security), and it's only going up.
Example 5: Cryptographers and algebreists won't give up. As of last year, the dollar figure associated with factoring the product of two primes (up to a certain size, which is larger than what most people are using for keys) dropped by something like an order of magnatude. If you're sending information that's very expensive and needs to secret for a long time, you'd better be using a heck of a key. Even so, it's possible that someone might construct a better factoring algorithm. What then? People keep looking at and breaking cryptosystems.
Plus, it's interesting math and fun to play with. We use cryptosystems in new and exciting ways, to make interesting interactions between people possible. (Another cryptographer here has a paper on bribing cops, formenting revolution, and hitting on women.)
Lea
I like the primer PKE here.
During my army service, I was told about random number generating cards. Basic idea is very simple, use thermal noise in conductors/semiconductors as a starting point for number generation.
So if you need random numbers for encryption, try some googling, and you will find many variations on this theme - serial port based equpment; noise from sound card (low cost solution - all you need is software). There are also schemes for do-it-yourself equipment.
Unfortunately, you should be a bit reluctant to accept the idea that all these things work as advertised. Just for beginning, although thermal noise is white noise by default, it get filtered in system during the processing. Its spectrum will not be the same as it was on the origin. (I am not an expert, but I think that spectral characteristics of the signal is not a requrement for randomness, but this is still good example of possible flaw in implementation.)
If I would start using this, I would test this generators with some mathematical tools.
Also, there are encription cards. I was able to see one made by Soekris. It has hardware implementation of DES. DES is designed to be done in hardware - shifting and xoring is easy to implement in hardware. Soekris makes 486 and P5 low-consumption small sized boxes. With this card, you may make good and fast IPSec firewall that runs on 133MHz 486 (!). Unfortunately, I am not in touch with this equipment any more, but problem was that Linux driver was in alpha state (situation from 10 months ago). BSD drivers were in release state.
(One idea came to my dirty mind - how interesting this card might be for crackers?)
No sig today.
Although the other responses have answered your question properly, I think there's something else that needs attention: you're grading them with a limited scope.
There are a variety of different techniques available to encrypt a message, with each one offering unique advantages/disadvantages. To illustrate this, two examples: async and OTP.
Async (like RSA, etc) is great when you want strangers to send you secure info since there is no need to establish a key set. However, it requires a relatively larger amount of effort to process the message, when compared with sync. A common practice is to exchange sync keys in an async correspondence, and then continue the conversation with sync.
Another benefit is that you can 'sign' a message, but I won't cover that here.
OTP _is_ unbreakable. The problem is that you need to first establish the key AND communicate that key to the other party through a secure channel. This means that the other party is previously known to you and you still need to find a secure channel. The most common method is to deliver the key personally, which can be very impractical.
The other problem with OTP is that you CANNOT USE IT AGAIN. This may seem like a benefit, but the message cannot be longer than the key and renders it impossible to have a continuous conversation using OTP.
One last thing to mention is that any encryption slows down communication. The more levels you add, the longer it takes to encode and decode it.
The general rule for practical encryption is that the security will expire at some date. If you need it to be secret for longer than a year, don't use a cypher that can be broken within a year. And if the info is so super duper secret that you can't ever have the security expire - why have it transmitted in the first place?
wow... this is really just an introduction. If you really want to learn about encryption and decryption, read Simon Singh's "The Code Book." By the way, cipher is spelled wrong.
No one has ever broken PGP. No one has ever broken GPG.
Correction: No-one has ever admitted to having broken PGP or GPG. Unless you know something those of us outside the NSA don't, you can never be so sure.
Remember, the Nazi's thought no-one had broken Enigma...
---- Den ene knappen er powerknapp, den andre er Bender voice knapp "Bite My Shiny Metal Ass"
People have tried, and it is completely possible to factor ANY prime number.
Basically this task takes a prohibitively long time on modern technology. Even employing the top 5 of the Top500 super computers, results would still take a while (for large primes).
I think that even if it became possible to factor any prime in 1 months time, ecommerce stores *could* rotate their keys on a daily basis until a more permenant solution is developed.
Ideally, we should be using a key system that is mathematically impossible to reverse using a computer ( rather a Turing machine).
There are 10 types of people in the world. Those who understand binary and those who do not.
In hopes that their's will become the defacto standard, forcing everyone to pay them patent royalties.
This is good primer material for newbs, and a good refresher for fogeys.
After an intro like this, who would want to read it? "Gee, am I a hopeless newb, or a fogey with a bad memory?"
This article makes me all warm and fuzzy inside. I'm a big advocate of encryption (especially PGP/GPG), and hopefully this article will encourage some neophytes to start using encryption (such as PGP). I'm not a paranoid geek that sits inside all day, if that's what you're thinking, by the way; I just think that a user has the right to be secure and private.
- dshaw
To be more specific:
if you reuse it, then you can XOR the two encrypted parts that are reused (EA and EB) and the result is the same as XORing the text from the two parts, unencrypted (A and B). Therefore the letter & word frequencies are the same as two XORed pieces of english text, and easily recognizable. You can now guess from a much reduced set what the letters are, and you know you got it right when XORing your guess for A against the XORed combination from their encrypted message (EA xor EB) yields the *other* encrypted message (B).
Now you can XOR A against EA to get the random key. So reusing the pad gives up the message from all times you reused it and gives up the random key itself.
OTP is great if you can keep the key secret, have a way to xfer the key, and NEVER EVER REUSE IT. Otherwise, i.e. in virtually every real world situation, it sucks.
If it were possible to factor any prime in one month then we'd have to get new credit cards every month. That's why it's fine if it takes a few years - since any intercepted data would be good by then.
The way that https works, different keys are used for each session, so they are already rotated more than once a month.
I cant see how we could ever have a key system that's impossible to reverse. The beauty of RSA is that it's simple enough that high school kids can understand it, implement it, and figure out how to break it - it's just a simple problem that takes a very long time.
I would be VERY wary of an encryption technology that was 'unbreakable' since that probably just means the inventor cant see how to break it.
If it were possible to factor any prime in one month
Any prime's factors are itself and one.
</smartass>
If I am 32 and the first computer I programmed was a Commodore PET, and I programmed a Rot13 algorithm on the first Apple Macintosh in Microsoft BASIC, does that make me a fogey?
They aren't realistic because they don't apply to encrypting TCP/IP traffic? That's an incredibly narrow point of view you have there.
I was just quoting the parents notion about factoring primes... of course it should be "factoring into primes".
:)
Can i see your top-secret O(1) algorithm
I guess people will never realize that our sun hasnt enough energy to power the brute forcing a 256bit key and continue screaming "moores law will make it insecure!!!!111"
HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
The article is really a cipher, and decoded it reads: We really have no idea what we're talking about, but thought that if we threw in enough technobable, you'd buy it.
HexaByte - he's a square and a half!
I'm cuurently working on a project which requires me to log users in against a propietory database. The only problem is that the password field is stored encrypted. It's a forward only encryption stored in HEX, the max column size is 30.
e.g.: "letmein!" is stored as "569D67B22D50C257". Can someone tell me what encryption is in use here? It would really help me out.
--TIA
Remember, all reservation numbers start with "6", all cancellation numbers start with "5". Both are the same length (8 digits). Using the following key:
1 2 3 4 5 6 7 8 9 0
0 9 8 7 6 5 4 3 2 1
In theory one could make a reservation, forget to cancel, create their own cancellation number, call, give cancellation number and get refund. Don't do this. Doing this is bad.
What stupid ways companies keep their secrets.
Next week: How Ryder rent-a truck uses the same key, by make, for their entire one way fleet (or atleast they use to).
Lava Lamp Encryption
B reak_Hard_to_Crack.shtml
c ryption&btnG=Google+Search
http://www.giantlavalamp.com/information/Easy_to_
and
http://www.google.com/search?hl=en&q=lava+lamp+en
All you have to do is set it so those asteriky things pop up when you type your password. No one can figure that stuff out.
That's it. Now, put N and e together in a file and call it your "private key", and put N and d together and call it your "public key". To use them:
In practice RSA takes too much time, so you make yourself a random key, encrypt that using RSA, and you and your recipient communicate using a symmetric cipher.
As to why ((n^e mod N)^d mod N) = n, that's where it helps to know some math. Mathweb or Wikipedia can help you, but having a bit of background in abstract algebra will help.
http://theory.lcs.mit.edu/%7Erivest/crypto-securit y.html
i nk s.html
I also have a number of links on a crappy page of mine, that some of you may find informative. Scroll down to Crypto/Privacy etc...
http://allfreightaustralia.com/cana5ta-mirr0r/l
-Cam
For the OTP not only does require the pad to be used once, and ONLY once, and it to be sufficiently random, but the pad data also must not be known by anyone else. If you use data recorded for the SETI program, it is certain that that a potential attacker can get to know it. An attacker who considers there may be people incompetent enough to use publicly available data for their one time pad will easily break proposed SETI-based encryption with little resources.
on slashdot
But the parent submission has the advantage of the book being free, so it is good if you are new to cryptography and want to get your feet wet.
The lunatic is in my head
An oldtime Slashdot favourite : Cryptonomicon, Neal Stephenson.
Includes a supplemental algorithm called, Solitaire, developed by crpto-researcher Bruce Schneier.