Home-made Ciphers
Moderator: Edi
-
- BANNED
- Posts: 3791
- Joined: 2002-09-25 06:59pm
- Location: Suckling At The Teat Of Missmanners
Home-made Ciphers
Anyone got any good non-software encryption schemes?
Here's one -- CSVC (Continuous-Shift Vigenere Cipher)
Take your standard Vigenere Square. Instead of
ABCDEFGHIJKLMNOPQRSTUVWXYZ
BCDEFGHIJKLMNOPQRSTUVWXYZA
CDEFGHIJKLMNOPQRSTUVWXYZAB
DEFGHIJKLMNOPQRSTUVWXYZABC
EFGHIJKLMNOPQRSTUVWXYZABCD
and so on, a CSVC employs an ascending or descending prime-number shift sequence. The sequence itself can be used as the key. For example:
B5+:
GLQVAFJPUZ... starts with B as the beginning letter of the first line of ciphertext, and shifts 5 spaces for the next letter in the ciphertext. This 5 space shift is repeated until there are 26 letters in the first line. Since the sequence is ascending (as denoted by + in the key) the next line will start with C as the opening letter, then employ a 7-space shift. The only prime number not useable in the CVSC is 1.
Thus, an ascending shift would proceed 3, 5, 7, 11, 13, etc. 13 is what I limit myself to for ease of use. Descending shift is denoted by "-" in the key, for example "C7-".
Anyone else have one?
Here's one -- CSVC (Continuous-Shift Vigenere Cipher)
Take your standard Vigenere Square. Instead of
ABCDEFGHIJKLMNOPQRSTUVWXYZ
BCDEFGHIJKLMNOPQRSTUVWXYZA
CDEFGHIJKLMNOPQRSTUVWXYZAB
DEFGHIJKLMNOPQRSTUVWXYZABC
EFGHIJKLMNOPQRSTUVWXYZABCD
and so on, a CSVC employs an ascending or descending prime-number shift sequence. The sequence itself can be used as the key. For example:
B5+:
GLQVAFJPUZ... starts with B as the beginning letter of the first line of ciphertext, and shifts 5 spaces for the next letter in the ciphertext. This 5 space shift is repeated until there are 26 letters in the first line. Since the sequence is ascending (as denoted by + in the key) the next line will start with C as the opening letter, then employ a 7-space shift. The only prime number not useable in the CVSC is 1.
Thus, an ascending shift would proceed 3, 5, 7, 11, 13, etc. 13 is what I limit myself to for ease of use. Descending shift is denoted by "-" in the key, for example "C7-".
Anyone else have one?
- Faram
- Bastard Operator from Hell
- Posts: 5271
- Joined: 2002-07-04 07:39am
- Location: Fighting Polarbears
That one is broken way back
For a strong easy kickas crypto only involving a deck of cards read THIS
For a strong easy kickas crypto only involving a deck of cards read THIS
[img=right]http://hem.bredband.net/b217293/warsaban.gif[/img]
"Either God wants to abolish evil, and cannot; or he can, but does not want to. ... If he wants to, but cannot, he is impotent. If he can, but does not want to, he is wicked. ... If, as they say, God can abolish evil, and God really wants to do it, why is there evil in the world?" -Epicurus
Fear is the mother of all gods.
Nature does all things spontaneously, by herself, without the meddling of the gods. -Lucretius
"Either God wants to abolish evil, and cannot; or he can, but does not want to. ... If he wants to, but cannot, he is impotent. If he can, but does not want to, he is wicked. ... If, as they say, God can abolish evil, and God really wants to do it, why is there evil in the world?" -Epicurus
Fear is the mother of all gods.
Nature does all things spontaneously, by herself, without the meddling of the gods. -Lucretius
-
- BANNED
- Posts: 3791
- Joined: 2002-09-25 06:59pm
- Location: Suckling At The Teat Of Missmanners
I know the standard Vigenere was broken, but who broke the CSVC? I mean, unless I'm suffering from cryptomnesia, I invented it...Faram wrote:That one is broken way back
For a strong easy kickas crypto only involving a deck of cards read THIS
(Wait -- sudden flash of worry that the one-time pad cipher is similar. No, wait -- it's not. It uses a word or phrase as the key.)
- Faram
- Bastard Operator from Hell
- Posts: 5271
- Joined: 2002-07-04 07:39am
- Location: Fighting Polarbears
Ehh ok thought it was the standard Vigenere.
Right that would be harder to break with pen&paper but your use of primes are a weakness in this case. There is only that many primes you can use beore it gets really messy.
Right that would be harder to break with pen&paper but your use of primes are a weakness in this case. There is only that many primes you can use beore it gets really messy.
[img=right]http://hem.bredband.net/b217293/warsaban.gif[/img]
"Either God wants to abolish evil, and cannot; or he can, but does not want to. ... If he wants to, but cannot, he is impotent. If he can, but does not want to, he is wicked. ... If, as they say, God can abolish evil, and God really wants to do it, why is there evil in the world?" -Epicurus
Fear is the mother of all gods.
Nature does all things spontaneously, by herself, without the meddling of the gods. -Lucretius
"Either God wants to abolish evil, and cannot; or he can, but does not want to. ... If he wants to, but cannot, he is impotent. If he can, but does not want to, he is wicked. ... If, as they say, God can abolish evil, and God really wants to do it, why is there evil in the world?" -Epicurus
Fear is the mother of all gods.
Nature does all things spontaneously, by herself, without the meddling of the gods. -Lucretius
-
- BANNED
- Posts: 3791
- Joined: 2002-09-25 06:59pm
- Location: Suckling At The Teat Of Missmanners
Hmm. Maybe a preset specification of specific primes to be used could be incorporated somehow without giving a hint of a crib...Faram wrote:Ehh ok thought it was the standard Vigenere.
Right that would be harder to break with pen&paper but your use of primes are a weakness in this case. There is only that many primes you can use beore it gets really messy.
Here's another one: AT9 (Alternating T9) cipher:
An example would be: Hello (plaintext) = 4d5k6
Here's how it works: Take your plaintext message. Look at the T9 keypad on your telephone. There are 3-4 letters on keys 2-9. The first letter of your plaintext becomes the number of the key on which it appears. The next letter is a one-letter shift. Number. Shift. Number. Shift, and so on. Software would make this easier to use, and would probably be mandatory for decryption.
Hmm, I could tell you many cool and intresting Cypoto tecnhinques, but the goverment would kinda yank my clerance away and leave me dead in back ally as it falls under Treason to posts those sorts of things to the public domain
"A cult is a religion with no political power." -Tom Wolfe
Pardon me for sounding like a dick, but I'm playing the tiniest violin in the world right now-Dalton
-
- BANNED
- Posts: 3791
- Joined: 2002-09-25 06:59pm
- Location: Suckling At The Teat Of Missmanners
Just so it's clear (I should have said this already) CSVC and AT9 are copyrighted. Didn't think I'd have to worry about that... until now.Mr Bean wrote:Hmm, I could tell you many cool and intresting Cypoto tecnhinques, but the goverment would kinda yank my clerance away and leave me dead in back ally as it falls under Treason to posts those sorts of things to the public domain
-
- BANNED
- Posts: 3791
- Joined: 2002-09-25 06:59pm
- Location: Suckling At The Teat Of Missmanners
Code: Select all
/***********************
*2 bit encryption sorta...
*Just throw the routine in reverse
*to get the message decoded.
*This routine is not vulnerable to
*charecter analysis.
*Just reaplce key with a int returning
*routine, and you will have a pretty code
*encyrption routine
**************************/
char* alphaNum = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPPASDFGHJKLZXCVBNM1234567890 ';
char* message = "Hello My Name Is Azeron';
message = encode(message,8,0);
/*recursive algorythim */
char* encode(char[]* string,int* key,int* iter){
for(int i=0;i>65;i++){
if(alphaNum[i]==string[iter]){
string[iter]=alphaNum[i+(key*iter++)];
break;
}
}
/*just a obscure if else statement. */
reuturn (strlen(message)!=iter)?encode(message,8,iter):message;
}
Last edited by Azeron on 2002-10-04 09:22pm, edited 2 times in total.
The Biblical God is more evil than any Nazi who ever lived, and Satan is arguably the hero of the Bible. -- Darth Wong, Self Proffessed Biblical Scholar
-
- BANNED
- Posts: 3791
- Joined: 2002-09-25 06:59pm
- Location: Suckling At The Teat Of Missmanners
whats going on, is that I took the alphanumeric squence, and I put it in my own sequence. (QWERTY for those of you lazy coders who recognize what I did)
I first find the corresponsding charecter aganst the the alphaNum List. I then change the letter in the message to the current interation of the routine times the key integer.
Suppose I had the letter A first.
A is in the first position in the list
so I add i + (the key * the current iteration of the routine) or position on the string depending on your perspective so
a strign that I want to encode like 'AAAAAAA'
will go through a charecter list with a corrsponding expodential increase.
A once with be J
A second will be S
A third .... yadada
(ohh I just guessed the result so ignore)
in charecter anaysis you look at how often the charecter repeats, and then break it letter by letter. since the routine does not repeat for a given letter its pointless.
If the key is actually a complicated fucntion evaluation based on some random sequence the routine cipher strength would increase expodentially. although this is not a public/private key system.
I first find the corresponsding charecter aganst the the alphaNum List. I then change the letter in the message to the current interation of the routine times the key integer.
Suppose I had the letter A first.
A is in the first position in the list
so I add i + (the key * the current iteration of the routine) or position on the string depending on your perspective so
a strign that I want to encode like 'AAAAAAA'
will go through a charecter list with a corrsponding expodential increase.
A once with be J
A second will be S
A third .... yadada
(ohh I just guessed the result so ignore)
in charecter anaysis you look at how often the charecter repeats, and then break it letter by letter. since the routine does not repeat for a given letter its pointless.
If the key is actually a complicated fucntion evaluation based on some random sequence the routine cipher strength would increase expodentially. although this is not a public/private key system.
The Biblical God is more evil than any Nazi who ever lived, and Satan is arguably the hero of the Bible. -- Darth Wong, Self Proffessed Biblical Scholar
-
- BANNED
- Posts: 3791
- Joined: 2002-09-25 06:59pm
- Location: Suckling At The Teat Of Missmanners
nah my math skills aren't good enough for a real key system. I need to generate a public/pricate key relationship. If anyone gets the key, they can decode it.
The Biblical God is more evil than any Nazi who ever lived, and Satan is arguably the hero of the Bible. -- Darth Wong, Self Proffessed Biblical Scholar
- Vertigo1
- Defender of the Night
- Posts: 4720
- Joined: 2002-08-12 12:47am
- Location: Tennessee, USA
- Contact:
Yeah, I've got one but its not one I can type up on a computer. It involves a series of right angles.
It works like this:
I draw a standard tic-tac-toe grid. Thats A - I. I draw another one, but each angle has a one dot in the corner pointing to the center. The block in the middle has a dot in the center. This would be J - R. A third grid is drawn, but instead of dots I use astericks. This is the rest of the alphabet.
A buddy of mine and I worked this up back when we were in seventh grade. Nobody has ever broken it yet.
It works like this:
I draw a standard tic-tac-toe grid. Thats A - I. I draw another one, but each angle has a one dot in the corner pointing to the center. The block in the middle has a dot in the center. This would be J - R. A third grid is drawn, but instead of dots I use astericks. This is the rest of the alphabet.
A buddy of mine and I worked this up back when we were in seventh grade. Nobody has ever broken it yet.
"I once asked Rebecca to sing Happy Birthday to me during sex. That was funny, especially since I timed my thrusts to sync up with the words. And yes, it was my birthday." - Darth Wong
Leader of the SD.Net Gargoyle Clan | Spacebattles Firstone | Twitter
Leader of the SD.Net Gargoyle Clan | Spacebattles Firstone | Twitter
-
- BANNED
- Posts: 3791
- Joined: 2002-09-25 06:59pm
- Location: Suckling At The Teat Of Missmanners
- Vertigo1
- Defender of the Night
- Posts: 4720
- Joined: 2002-08-12 12:47am
- Location: Tennessee, USA
- Contact:
Yeah, thats basically the gist of it. Confused the hell out of alot of teachers that way.
"I once asked Rebecca to sing Happy Birthday to me during sex. That was funny, especially since I timed my thrusts to sync up with the words. And yes, it was my birthday." - Darth Wong
Leader of the SD.Net Gargoyle Clan | Spacebattles Firstone | Twitter
Leader of the SD.Net Gargoyle Clan | Spacebattles Firstone | Twitter