Author Topic: Null encoding  (Read 3102 times)

0 Members and 2 Guests are viewing this topic.

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
Null encoding
« on: July 09, 2013, 04:24:14 pm »
Author: Code.Illusionist
Name: Null Encryption
Description: Null encryption is based on mobile phone keyboard. It's not completely same because it would be easy to crack but it's good enough for basic message exchange .

How it work?
First of all imagine keyboard like this:

Now, the whole idea is quite simple. Number 2 contain letters A, B and C . So, if you encode letter B with Null encryption, you will type 4. Why 4? Well B is on number 2, and it's squared by 2 because it take second place. Here you can see all characters I made:

Signs
. (dot) = 01
, (comma) = 02
! (exclamation mark) = 03
? (questionnaire) = 04
  (space) = 05
@ (monkey) = 06
_ (underscore) = 07
# (hash) = 08
% (percent) = 09
Letters
A = 21 = 2
B = 22 = 4
C = 23 = 8
D = 31 = 3
E = 32 = 9
F = 33 = 27
G = 41 = 4 + 3 = 7
H = 42 = 16
I = 43 = 64
J = 51 = 5
K = 52 = 25
L = 53 = 125
M = 61 = 6
N = 62 = 36
O = 63 = 216
P = 71 = 7 + 3 = 10
Q = 72 = 49
R = 73 = 343
S = 74 = 2401
T = 81 = 8 + 3 = 11
U = 82 = 64 + 3 = 67
V = 83 = 512
W = 91 = 9 + 3 = 12
X = 92 = 81
Y = 93 = 729
Z = 94 = 6561


Numbers



0 = I
1 = J
2 = K
3 = L
4 = M
5 = N
6 = O
7 = P
8 = Q
9 = R

Example:


Hey there. Sup? (basic text)


1. H = 16
2. e = 9
3. y = 729
4. (space) = 05
5. t = 11
6. h = 16
7. e = 9
8. r = 343
9. e = 9
10. (dot) = 01
11. (space) = 05
12. S = 2401
13. u = 67
14. p = 10
15. ? = 04


After we encoded each character into appropriate number, we must add sign ! between each sign so the numbers don't mix up. Here is final result:

Hey there. Sup? = 16!9!729!05!11!16!9!343!9!01!05!2401!67!10!04


As you can see there is no person who could understand encoded text because it just has no sense for people who don't have key as you do. Decoding is completely the same. Just translate this numbers into appropriate letter or sign.
« Last Edit: July 09, 2013, 09:54:15 pm by Code.Illusionist »
Vae Victis - suffering to the conquered

Offline Deque

  • P.I.N.N.
  • Global Moderator
  • Overlord
  • *
  • Posts: 1203
  • Cookies: 518
  • Programmer, Malware Analyst
    • View Profile
Re: Null encryption
« Reply #1 on: July 09, 2013, 05:04:06 pm »
Very good idea. But it is an encoding, not an encryption. You should consider renaming it. ;)

Offline Chef

  • Peasant
  • *
  • Posts: 126
  • Cookies: 3
  • Corrupted Soul
    • View Profile
Re: Null encryption
« Reply #2 on: July 09, 2013, 05:48:57 pm »
This seems pretty cool. But, really, when would you need to encode a message from one use to another like this?
It takes extra time to write it out, so when would doing this be worth it?
"To find happiness is to not always laugh."

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Null encryption
« Reply #3 on: July 09, 2013, 06:27:18 pm »
It takes extra time to write it out, so when would doing this be worth it?
Not unless you have an automated version of this, like a script or a program.

@OP: this is awesome. Not what the CIA would use but still nice try :D +1
You could modify this to take in a user provided encoding key, which could be a number between 1 and 9 and that number would apply for every character of the given string... just an idea, dunno how secure would that be :P
« Last Edit: July 09, 2013, 06:30:03 pm by Kulverstukas »

Offline Chef

  • Peasant
  • *
  • Posts: 126
  • Cookies: 3
  • Corrupted Soul
    • View Profile
Re: Null encryption
« Reply #4 on: July 09, 2013, 07:45:14 pm »
Not unless you have an automated version of this, like a script or a program.

@OP: this is awesome. Not what the CIA would use but still nice try :D +1
You could modify this to take in a user provided encoding key, which could be a number between 1 and 9 and that number would apply for every character of the given string... just an idea, dunno how secure would that be :P
Okay I see how an automated version would make this pretty bad ass.
"To find happiness is to not always laugh."

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
Re: Null encryption
« Reply #5 on: July 09, 2013, 09:12:10 pm »
Thanks guys for comments. I am quite new into this encoding stuff and cryptography in general so the terms are quite unknown to me yet. Will edit title when I get on PC. Also, I can try to upgrade this current version of encoding by adding some feature. Atm, no idea what. And yes, nobody ever encode manualy, this is not middle age. You code application or script to do so while you do whatever you want. It can come in handy if you send someone encoded message like this on fb , since fb spy people. Cool to play around. You can add your own ideas on this basic idea, make it better, or even show me here. That's what I would like most. :)
Vae Victis - suffering to the conquered

Offline Chef

  • Peasant
  • *
  • Posts: 126
  • Cookies: 3
  • Corrupted Soul
    • View Profile
Re: Null encryption
« Reply #6 on: July 09, 2013, 09:25:03 pm »
Thanks guys for comments. I am quite new into this encoding stuff and cryptography in general so the terms are quite unknown to me yet. Will edit title when I get on PC. Also, I can try to upgrade this current version of encoding by adding some feature. Atm, no idea what. And yes, nobody ever encode manualy, this is not middle age. You code application or script to do so while you do whatever you want. It can come in handy if you send someone encoded message like this on fb , since fb spy people. Cool to play around. You can add your own ideas on this basic idea, make it better, or even show me here. That's what I would like most. :)

I'd consider downloading this and using it between the other party's I may have running a secret project. Let me know when it's finished.
"To find happiness is to not always laugh."

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
Re: Null encryption
« Reply #7 on: July 09, 2013, 09:37:04 pm »
Ok then. I will upgrade this basic idea into something waay better and then make application to do automatic encoding and decoding. :)
Vae Victis - suffering to the conquered

Offline Chef

  • Peasant
  • *
  • Posts: 126
  • Cookies: 3
  • Corrupted Soul
    • View Profile
Re: Null encryption
« Reply #8 on: July 09, 2013, 09:38:02 pm »
What language did you code it in?
"To find happiness is to not always laugh."

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
Re: Null encryption
« Reply #9 on: July 09, 2013, 09:53:39 pm »
I have no idea what language I should use. I could make HTML page and then use PHP code to ecnode / decode. Same with javascript. Or maybe in C, or maybe in Visual Basic.
Vae Victis - suffering to the conquered

Offline Chef

  • Peasant
  • *
  • Posts: 126
  • Cookies: 3
  • Corrupted Soul
    • View Profile
Re: Null encoding
« Reply #10 on: July 09, 2013, 10:46:32 pm »
I have no idea what language I should use. I could make HTML page and then use PHP code to ecnode / decode. Same with javascript. Or maybe in C, or maybe in Visual Basic.

Bro do it in C++! Lol I'm only saying that because that's the language I'm learning
"To find happiness is to not always laugh."

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
Re: Null encoding
« Reply #11 on: July 09, 2013, 10:59:51 pm »
I don't know C++ .
Vae Victis - suffering to the conquered

Offline r23k

  • NULL
  • Posts: 3
  • Cookies: 0
  • After all, we're all alike.
    • View Profile
Re: Null encoding
« Reply #12 on: September 08, 2013, 02:49:25 am »
Interesting your idea now is to test in practice.

Offline chapp

  • Peasant
  • *
  • Posts: 87
  • Cookies: 2
    • View Profile
Re: Null encoding
« Reply #13 on: September 08, 2013, 11:21:16 am »
This is just a simple substitution cipher with a different alphabet than [a-zA-Z]. Probs for effort, but it is really easy to decode using simple letter frequency analysis.


Probs for effort when you just started in the area:-)

Offline Deque

  • P.I.N.N.
  • Global Moderator
  • Overlord
  • *
  • Posts: 1203
  • Cookies: 518
  • Programmer, Malware Analyst
    • View Profile
Re: Null encoding
« Reply #14 on: September 08, 2013, 02:34:11 pm »
This is just a simple substitution cipher with a different alphabet than [a-zA-Z]. Probs for effort, but it is really easy to decode using simple letter frequency analysis.


Probs for effort when you just started in the area:-)

It's an encoding, not a cipher. The goal of an encoding is not to secure a text from being read, because the algorithm is all you need to know in order to decode it (and security by obscurity is sure not something desireable).
A cipher would have a key, so that the knowledge of the algorithm isn't enough to decrypt it and you can use different secrets for different messages (cracking one message won't help cracking all of the others immediately too, this way you can have different persons send messages to using different keys, without fearing that one person might be able to read the messages you send to the other)

Criticising null encoding for being easy to decode is the same as criticising base64 for being easy to decode. It doesn't make sense at all. An encoding should be easy to encode and decode.
« Last Edit: September 08, 2013, 02:37:17 pm by Deque »