2

I've been spending my spare time coming up with the basis for an encryption algorithm. I am completely unfamiliar with computer programming, but my time as a Network Technician left me incredibly familiar with binary. I was playing around with numbers on a paper at work one day (being a Network Tech is pretty boring when everything is working correctly) and I think I'm on to something.

Basically, I found that if you take a file, and "relate" the bytes of data unto themselves, you can come up with a string of 1s, 0s, Xs and Ys. Sound confusing? Let me give you an example

Byte A: 10100110 Byte B: 10111110 Take Byte A, and relate it to Byte B, with each bit being "related" to the corresponding bit of the other byte.

Using the following rules, we achieve a given output:

Bit A: 1 Bit B:1 Output: 1

Bit A: 1 Bit B:0 Output: 0

Bit A: 0 Bit B:1 Output: X

Bit A: 0 Bit B:0 Output: Y

So our example would be (1-1), (0-0), (1-1), (0-1), (0-1), (1-1), (1-1) (1-0)

OR (1),(Y),(1),(X),(X),(1),(1),(0) OR 1y1xx110

We repeat the process, this time relating the first half of our resulting string with the second half of it.

So our example would be (1-X) (Y-1) (1-1) (X-0)

We achieve a binary output by mapping the possible permutations to a value determined by turning a pass phrase into hex, and applying each digit of the resulting number to the starting value of the permutation mapping. Sounds confusing, (Not that I'm implying that it is difficult to understand, just that I'm absolutely dreadful at explaining things) right?

Allow me to illustrate this.

We have four possible characters in each digit. If we take them as permutations, rather than combinations, we have 16 possible outcomes. We can assign a starting value to those that is binary. For example: 1 followed by 1 returns 0000 if the corresponding hex digit is 0. If the hex digit was 4, the former would have returned 0100. For every two bytes encrypted, you exhaust a portion of the hex key. After the predetermined hex key is exhausted, you simply rotate the key a specific way according to a simple metric.

I've done a terrible job explaining it, but you can watch the following Youtube videos if you're actually interested in understanding this. I will warn you, I made this videos for people that are completely uneducated on the topic at hand. (Which you, more than likely, are not)

Intro Video: https://www.youtube.com/watch?v=wEIr9gBOJKs

Second Video: https://www.youtube.com/watch?v=6tItNdvX2K4

closed as off-topic by user45139, RoraΖ, Xander, Stephane, Steve Aug 6 '15 at 19:21

  • This question does not appear to be about Information security within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Hi Andrew, welcome to Information Security! First comment I have - is there a question here? – AviD Aug 6 '15 at 11:26
  • 2
    Third: I strongly urge you to read up on the basics of modern cryptography. One doesn't simply create a new encryption algorithm, especially not without a strong, extensive background in existing methodologies (and even with that, peer review over several years...). At the very least, you have a basic key management problem - which is, unless you have a passphrase as long as the text you want to encrypt, it is trivially breakable, and if it IS that long, well then you have the confidentiality problem all over again... – AviD Aug 6 '15 at 11:29
  • 3
    1) The question was an implied " Is this worth a damn?" 2) I'm new to this site, I'm just surrounded by imbeciles and need an educated perspective on this. My apologies if I've posted in the wrong section, or outside of the scope in general. 3,4,5) I've read up on the basics. I'm constantly reading this or that. I understand the "don't roll your own" maxim. What I would like for you to elaborate is exactly why it would be "trivially breakable". I sincerely hope you can. – Andrew Cobb Aug 6 '15 at 11:38
  • 5
    Lol - sorry for possibly scaring you with the comments. I was trying to initially decide whether it would be on topic over on Cryptography Stack Exchange, or whether it would be closed as a dupe. Probably worth having a look over there, as they cover theory and concepts of crypto, whereas we pretty much only look at implementation of it here. – Rory Alsop Aug 6 '15 at 11:48
  • 3
    I'm voting to close this question as off-topic because it'd be better suited for Cryptography SE. – RoraΖ Aug 6 '15 at 13:42