|
CyBot
|
CyBot
|
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?
|
|
|
|
Joined: Feb 2003
Posts: 2,737
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,737 |
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!
|
|
|
|
CyBot
|
CyBot
|
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.
|
|
|
|
Joined: Feb 2003
Posts: 2,737
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,737 |
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.
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
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,737
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,737 |
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>
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
<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,015
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,015 |
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?
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
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,015
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,015 |
What is the point of ROT26? You just end up back where you started!
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
it is just different man so leave it be
|
|
|
|
Joined: Dec 2002
Posts: 3,015
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,015 |
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.
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
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'.
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 733 |
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,015
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,015 |
"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.
|
|
|
|
|