mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Decyphering problem #40265 07/08/03 08:01 AM
Joined: Aug 2003
Posts: 73
C
CyBot Offline OP
Babel fish
OP Offline
Babel fish
C
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? confused grin confused


The blue monkey is out of its barrel...
Re: Decyphering problem #40266 07/08/03 08:10 AM
Joined: Feb 2003
Posts: 2,688
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,688
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!
Re: Decyphering problem #40267 07/08/03 08:15 AM
Joined: Aug 2003
Posts: 73
C
CyBot Offline OP
Babel fish
OP Offline
Babel fish
C
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...
Re: Decyphering problem #40268 07/08/03 08:30 AM
Joined: Feb 2003
Posts: 2,688
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,688
Strong Encryption -- Blowfish
There 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 -- ROT13
ROT13 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!
Re: Decyphering problem #40269 07/08/03 02:17 PM
Joined: Dec 2002
Posts: 127
F
feud Offline
Vogon poet
Offline
Vogon poet
F
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.
Re: Decyphering problem #40270 07/08/03 03:33 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline
Hoopy frood
Offline
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


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: Decyphering problem #40271 07/08/03 04:00 PM
Joined: Feb 2003
Posts: 2,688
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,688
Quote:
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!
Re: Decyphering problem #40272 07/08/03 04:30 PM
Joined: Dec 2002
Posts: 127
F
feud Offline
Vogon poet
Offline
Vogon poet
F
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.
Re: Decyphering problem #40273 07/08/03 06:04 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline
Hoopy frood
Offline
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)


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: Decyphering problem #40274 07/08/03 06:05 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
I sincerely hope you're joking..

Re: Decyphering problem #40275 07/08/03 06:07 PM
Joined: Dec 2002
Posts: 127
F
feud Offline
Vogon poet
Offline
Vogon poet
F
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.
Re: Decyphering problem #40276 07/08/03 06:13 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline
Hoopy frood
Offline
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


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: Decyphering problem #40277 07/08/03 06:14 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
What is the point of ROT26? You just end up back where you started!

Re: Decyphering problem #40278 07/08/03 06:15 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
it is just different man so leave it be


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: Decyphering problem #40279 07/08/03 06:20 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
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.

Re: Decyphering problem #40280 07/08/03 06:21 PM
Joined: Dec 2002
Posts: 127
F
feud Offline
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 127
i hadn't even thought of that. that makes mtec89 that much funnier.


------
deep down, i'm really superficial.
Re: Decyphering problem #40281 07/08/03 06:22 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
whats the point of any encryption then? there is none, or thats how you make it sound


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: Decyphering problem #40282 07/08/03 06:25 PM
Joined: Dec 2002
Posts: 127
F
feud Offline
Vogon poet
Offline
Vogon poet
F
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.
Re: Decyphering problem #40283 07/08/03 06:27 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline
Hoopy frood
Offline
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.

http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: Decyphering problem #40284 07/08/03 06:29 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
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.

Page 1 of 2 1 2