 |
 |
 |
 |
| How did this simple article get 8626 views.
Not that it's bad or anything, just that there are better articles... :? |
|
 |
| | Simple - you have to view it to tell what it contains. In this case, not terribly much. I don't see the point of skipping spaces in the algorithm; you're likely to run into a fencepost error anyway, the moment someone uses the same character as key and data. |
|
 |
| | Anyone can easily break this type of crypto-system. |
|
 |
| I think that's why its called a "Simple" encryption system. It is used to illustrate that crypto-systems need bijective functions (its inverse is also a function). This is important because once you apply the function you need to be able to take the encrypted value back.
-Al |
|
 |
| | Yeah.. this is sort of a very young brother of OTP.. which is the only proven 100% secure cryptosystem |
|
 |
| | otp unless implemented incorrectly is 100% secure |
|
 |
| | There are inherent problems with the initial key distribution, and of course you also have to keep the pad secure. But it can be implemented correctly. |
|
 |
| The drawback is he key is as long as the message itself. So you'll have to first send across the "pad" to the recipent.
The +ve is that since the key is as long as the message itself.. the ciphertext, for ex:
a shd ajsdh jahdjakshdasjdh
could decrypt to:
"Hey we need more artillary"
or
"Whoa! send some girls over"
|
|
 |
| |
 |
| um, what about it? ^ as the xor operator works fine in Visual C++; I've used it myself on numerous occasions.
|
|
 |
| I wrote a commandline based XOR encryption program that takes in as the argument the key.
The program works fine, however if there are too many characters in the file to be deciphered, the program will not properly decipher the file, instead I get half of the file deciphered, and the rest is just a bunch of useless ciphertext junk. What would cause the XOR encryption to behave like that, just because there are too many characters to decipher.
note: I wrote the program so that if the key is longer than the string to decipher, the program resets to the beginning of the key.
EX:
KEY: ABC
STRING: hello World!!!
h ^ A
e ^ B
l ^ C
l ^ A
o ^ B
' ' ^ C
etc . . .
my syntax diagram:
Usage: aenc Filename key |
|
 |
| | The source code would help find the problem. Use the forum to post it. |
|
 |
| | How can I become a member of this websites forum? |
|
 |
| |
 |
| | BTW, it's 100% secure only in a case when length of key is equal to message length. It seems to be so... |
|
 |
| | Let me answer why this article is so popular, there is a site called http://www.ouverture-facile.com/ full of riddles to solve, a there is one that uses XOR encryption, it was recently digged, so many people are finding this article in the first page when they google XOR encryption |
|
 |
| | encryption and decryption in c++ |
|
 |
| | A very simple encryption method, easily bypassed, and yet it does provide beginners a simple example of how it's done. |
|
 |
| | why be so negative? this guy has taken the time to post his code. newbies may find it useful. |
|
 |
| | Hey I found this useful! thanks for taking the time to show us simple and easy to understand code. Programming is like lifting weights, if you don't do it a lot you can't just go and lift 300lb. This example was an awesome starter! Please do more of these in the future. |
|
 |
| | If you have a totally random key the same length as the plain-text, securely distributed beforehand to the receiving party, this simple XOR scheme is perfectly secure. This is called a one-time pad. Mathematics can't break it, so the NSA couldn't break it either. |
|
 |
| | Nice routines and very well written keep it up, thank you for sharing SEO Expert it's easy to follow and understandable. |
|
 |
| | NEVER USE STR.LENGTH IN ANY LOOP !!!!!!!!!!!!!!!!! |
|
 |
| | can a simple encryption algorithm not possible using non-linear feedback shift register concept?...cause that would increase the security to a great level, as well as would be simple also.. |
|
 |
| > A very simple encryption method,
> easily bypassed
Since its so easy... explain it in a few short sentences.
|
|
 |
| | Nothing wrong with str.length if you've got a compiler that doesn't suck |
|
 |
 |
 |
 |
Anonymously add a comment: (or register