mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#42349 17/08/03 10:41 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
any way to reverse what these return?


new username: tidy_trax
#42350 17/08/03 11:39 AM
Joined: Aug 2003
Posts: 73
C
Babel fish
Offline
Babel fish
C
Joined: Aug 2003
Posts: 73
I'm unsure what you mean by that.


The blue monkey is out of its barrel...
#42351 17/08/03 11:41 AM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
yea what's the point shocked

lol don't ya ever read mirc.hlp ?

Last edited by J0ke; 17/08/03 11:50 AM.

Go ahead, jump. 100,000 lemmings can't be wrong.
#42352 17/08/03 11:42 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
//echo -a $encode(test) returns: $=&5S=```
how do i get: $=&5S=``` back to test?

btw i know this can be used for writing harmful files, but i need it for password protection.


new username: tidy_trax
#42353 17/08/03 11:45 AM
Joined: Aug 2003
Posts: 73
C
Babel fish
Offline
Babel fish
C
Joined: Aug 2003
Posts: 73
Try using $encode(text,m) and $decode(text,m), it seems to actually work better.


The blue monkey is out of its barrel...
#42354 17/08/03 11:46 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
ah, thanks grin

Last edited by pheonix; 17/08/03 11:48 AM.

new username: tidy_trax
#42355 17/08/03 11:49 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Scripting 101: when a string begins with % or $ or contains commas or any number of other metacharacters, you must store the string in a %variable if you wish to pass it to an $identifier.

var %s = $encode(text)
echo -a $decode(%s)

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#42356 17/08/03 12:00 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
If you wanna make sure your passwords don't get cracked opr anything, use $md5. It can't be decrypted, but that's not needed. Just storew the $md5 encrypted version, and when someone sends a password, compare $md5(what-he-sent) to the stored encrypted version.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#42357 17/08/03 12:06 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Agreed. But we're not talking about passwords here.

$encode and $decode have legitimate purposes. Never the less, $md5 also requires you to pass the string in a %variable if it contains meta-characters.

pheonix wanted to know why uuencoded $=&5S=``` wouldn't $decode back to 'test', and that is because it began with $.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#42358 17/08/03 12:08 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
im using that already, i just thought i would make it more secure: im using a .dat file, but to $read/.write to the file, im using: $decode(stuffhere)(stuffhere will be the encoded filename).


new username: tidy_trax
#42359 17/08/03 12:11 PM
Joined: Aug 2003
Posts: 73
C
Babel fish
Offline
Babel fish
C
Joined: Aug 2003
Posts: 73
Er, what exactly would you use $md5 for? and what do you mean CANT be cracked?


The blue monkey is out of its barrel...
#42360 17/08/03 12:16 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
besides, im sure some sad person has made a dll or script: $unmd5(something)


new username: tidy_trax
#42361 17/08/03 12:19 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
general advice: don't post unless you know what you're talking about.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#42362 17/08/03 12:21 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
heh, since when didnt i know what i was talking about?


new username: tidy_trax
#42363 17/08/03 12:26 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
erm, what do you mean "we're not talking about passwords here" ? He literally said:
btw i know this can be used for writing harmful files, but i need it for password protection.

As for md5: last I heard the md5 encryption cannot be reversed. That doesn't mean it cannot be cracked, you'll just have to guess by md5'ing stuff and seeing if it comes up with the right encrypted format.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#42364 17/08/03 12:36 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i might as well post the script here because you would have to add every word in every language to crack all passwords.

alias newmd5 {
if (!$read(unmd5.txt,s,$1)) {
.write unmd5.txt $1
.write unmd5.txt $md5($1)
}
}
alias unmd5 {
return $iif($read(unmd5.txt,s,$1),$read(unmd5.txt,$calc($readn + 1)),$1 couldnt be found.)
}

Last edited by pheonix; 17/08/03 12:42 PM.

new username: tidy_trax
#42365 17/08/03 12:38 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Since you opened your mouth about $unmd5().

Only post about things you know about, unless asking a question. Since MD5 cannot be reversed, your assumption that somebody probably already has makes you look very foolish indeed.

MD5 (and CRC) are simply a hashes (fingerprints) of a string, using complex math and pre-defined 128 bit values for each of the 256 ASCII characters. Like a real fingerprint, it doesn't contain real information about the person (eg: height, gender, hair color, etc)... but you can tell if you have the right person by looking at their finger and comparing their fingerprint.

Because there are an infinite number of possible words/phrases/novels of information that can be fingerprinted with $md5, it would be impossible to guess (decode) the actuall string passed.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#42366 17/08/03 01:07 PM
Joined: Aug 2003
Posts: 73
C
Babel fish
Offline
Babel fish
C
Joined: Aug 2003
Posts: 73
Highly Improbable but not impossible, anyways i was trying to make a password thingo before where can i get md5?


The blue monkey is out of its barrel...
#42367 17/08/03 01:16 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
mIRC has a built in function, $md5(%string)

Btw, when I say impossible, I mean impossible. Because there are an infinite number of possible strings you can encode, that means any given hash (fingerprint) matches an infinite number of strings.

(from an earlier post) MD5 produces a 128 bit (16 byte) hash based off a similar but different technique as CRC uses. The accuracy of an MD5 is a whopping 1 in 340282366920938463463374607431768211456 (that's 340 undecillion). Even if you succeeded finding a single match, you can't be absolutly certain it is the correct match.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#42368 17/08/03 01:35 PM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
md5 rocks! cool


Go ahead, jump. 100,000 lemmings can't be wrong.
Page 1 of 2 1 2

Link Copied to Clipboard