|
Joined: Aug 2003
Posts: 73
Babel fish
|
OP
Babel fish
Joined: Aug 2003
Posts: 73 |
Hey, i think i've got a deciphering problem: Here's my code, it can work one way but i can't really figure out how to code it back to normal text: alias password { if ($2) { set %e 1 while ($len($1) >= %e) { set %d $calc(%d + $asc($mid($1,%e))) inc %e 1 } ;sets a number based on the first word, the password var %a 1 while (%a <= $len($2-)) { set %>.blah %>.blah $+ $chr($calc($len($1) + %d + $asc($mid($2-,%a,1)))) inc %a 1 } ;sets %>.blah as a character based on: ' <length of password> + <ascii characters for password> + <the ascii character for the second word (chosen letter)> ' unset %e unset %d .timer -m 1 1 unset %>.blah return %>.blah } } Say i used $password(pass,text here) it turns it into: /3/Û#- So does anyone know how to get it back to text here?
The blue monkey is out of its barrel...
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
This is really an ugly cipher, and unless you really need it for compatability, I would recommend using something else... blowfish encryption even.
From what I gleened of the cipher, it shouldn't be too hard to reverse, but the code looks 5 years old and really needs to be cleaned up. I could probably knock it down to 10 lines and make it 10x faster, but again is truely an ugly cipher.
Consider what you need it for, and what else is available out there. If all you need is a weak cipher, then consider ROT13. Using it will increase your popularity just by it's sheer coolness.
- Raccoon
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Aug 2003
Posts: 73
Babel fish
|
OP
Babel fish
Joined: Aug 2003
Posts: 73 |
Uh, where would i be able to get these encrypters? mircscripts.org ? - edited from here - I checked out that rot13 thing i think its not really that good because im trying to create something that needs a password so the computer user can store passwords and only needs 1 to access them, anyway, ill just do it myself another way :P
Last edited by CyBot; 07/08/03 08:24 AM.
The blue monkey is out of its barrel...
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
Strong Encryption -- BlowfishThere is a Blowfish DLL for mIRC, as well as a Script-only version as mentioned in this thread. However, the DLL is reportidly much faster. Weak Cipher -- ROT13ROT13 is simply short for rotate alphabet 13 places. It has been around since ancient times, first used by the romans or the greeks (i forget). I've written 5 or 6 scripts which encode/decode (same routine) ROT13 using various methods to see which is faster. You might try writing it for yourself just to hone your scripting skills. ROT13 KEY: ABCDEFGHIJKLMNOPQRSTUVWXYZ NOPQRSTUVWXYZABCDEFGHIJKLM I'm sure you can find many other ciphers and encryption schemes on any number of mIRC Scripting sites. - Raccoon
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Dec 2002
Posts: 127
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 127 |
i think it was the greeks. something about rot13 makes me remember some teacher sometime telling me about (one of the) caesar's using it.
------ deep down, i'm really superficial.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
i have a dll with ROT26 feature in it, if you want it pmsg me or i have a text encrypter with the dll on my site http://matrixn3t.net/mtec89/scripts.html
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
i have a dll with ROT26 feature in it You're too funny.
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Dec 2002
Posts: 127
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 127 |
<sarcasm> rot26?! does that mean it's twice as secure as rot13? i should probably go download this dll, since doing rot13 is just too processor intensive without one. </sarcasm>
------ deep down, i'm really superficial.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
<sarcasm> yeah it is twice as secure!!! in fact! it is the most secure encryption EVER!!!!!! </sarcasm>
shush man, it just moves the char over 26 instead of 13, and it only takes a small line to do it (in the script)
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
I sincerely hope you're joking..
|
|
|
|
Joined: Dec 2002
Posts: 127
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 127 |
"it just moves the char over 26 instead of 13" really? i had no idea.
"and it only takes a small line to do it (in the script)" but if you're using a dll to do this, a) it doesn't matter how 'small' the line is, and b) you should try and script things before turning to dlls.
btw- who would ever make a dll for mirc to do rot26?
------ deep down, i'm really superficial.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
an old friend of mine did it for me, with a many other features that i use in my scripts
as for the rest of your comments...shush
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
What is the point of ROT26? You just end up back where you started!
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
it is just different man so leave it be
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
What's the point of it? You give it "secret text" and it gives you "secret text" back, complete waste of time.
|
|
|
|
Joined: Dec 2002
Posts: 127
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 127 |
i hadn't even thought of that. that makes mtec89 that much funnier.
------ deep down, i'm really superficial.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
whats the point of any encryption then? there is none, or thats how you make it sound
|
|
|
|
Joined: Dec 2002
Posts: 127
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 127 |
no, no.. he's saying that if you used rot26 (haha, still can't get over how funny that is) to encrypt "hello", you would go 26 letters from 'h' to get... 'h'! the same for all the following letters. subsequently, 'hello' rot26'ed would be 'hello'.
------ deep down, i'm really superficial.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
OMFG! YOU LAMER!!!!!! IT USES ALL CHARECTERS OF THE FONT, NOT JUST LETTERS!!!!! LAMERRRRR!
Last edited by MTec89; 07/08/03 06:29 PM.
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
"ROT13 is simply short for rotate alphabet 13 places."
Since ROT13 is rotate alphabet 13 times, and ROT(N) is generally assumed to mean rotate alphabet N times, then it is logical to assume that ROT26 means rotate by alphabet 26 times, not font you sodding idiot.
He isn't a lamer because you don't know what ROT is.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
why the [censored] would you think someone would actually waste time to make somthing that did nothing????????
you people need to think differently
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
Well when most of what you post is a complete load of s[/b]hite why should we assume that you have actually posted something intelligent? (You didn't, you still misused the term ROT)
If you're gonna say ROT means "rotate by font" then you may aswell say lol means lots of lesbians or something equally stupid.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
lol doesnt mean lots of lesbians? wow i am so confused now..i thought it did
{ˆ“‘{“:‘‚{ŽŒF:ƒŽ:{:}Ž‰‡:ˆ}Œ“ŠŽƒ‰ˆ:Ž‚ˆF:|Ž:ƒŽ:~‰ˆŽ:‡{ŽŽŒF:ƒŽ:Žƒ††:‚ƒ€Ž:LP:}‚{Œ
Last edited by MTec89; 07/08/03 06:45 PM.
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
anyways whatever, its a custom encryption then, but it dont matter, it still shifts 26 chars
(To all those who didnt want to spend the 0.4 minute(s) making an alias to decipher what it took a dll to do...) Actually from what i gather the ROT13 shifts the letters 13 positions, not incriments the ascii value.. ABCDEFGHIJKLMNOPQRSTUVWXYZ Would then be NOPQRSTUVWXYZABCDEFGHIJKLM and not NOPQRSTUVWXYZ[\]^_`abcdefg as your intended DLL would have given us..
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 117
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 117 |
I was the romans actually, the caesars were romans (like Iulius Caesar)
$input(Me like stars, You too?)
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
i think it was the greeks. something about rot13 makes me remember some teacher sometime telling me about (one of the) caesar's using it. Umm Caesar wasn't Greek, he was Roman. The ROT13 is one variation of the Caesar Cipher which Julius Caesar used to communicate with his military. It is generally regarded as the first encryption method ever used, although it is also regarded as so simplistic that even a child could crack it.
|
|
|
|
Joined: Dec 2002
Posts: 127
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 127 |
------ deep down, i'm really superficial.
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
I intend to teach my children (if I ever get someone pregnant) how to read and write ROT13 natively without looking at a key.
I wonder if there are certain export restrictions on people with that ability. :tongue:
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
Only in Ancient Rome, specifically against the Germanic/Gaelic tribes in the hinterlands - especially those pesky druids and Picts. If you're not druidic or Pictish (or anything at all that resembles Gaelic), you should be fine.
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
|