mIRC Home    About    Download    Register    News    Help

Print Thread
#108780 22/01/05 06:13 AM
Joined: Jan 2005
Posts: 2
C
cinex Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: Jan 2005
Posts: 2
I'm trying to make my own $encode/$decode identifiers. for bordoms sake..

I'm using the method outlined @ http://dictionary.reference.com/search?q=uuencode
It all works ok, exept for occasionaly it drops the last letter when you "reencode" it, because it doesnt have any ` (s) on the end.
ANyone have an idea of how to work out how many ` (s) go on the end of the encoded text?

ie $encode(poo) would be #<&]O````

#108781 22/01/05 07:16 AM
Joined: Aug 2003
Posts: 1,825
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,825
Not too sure on this but the output seems to be multiples of 4 + 1
mIRCs $decode(,u) works quite happily without them at all laugh
  • //var %a = $encode(moo,u) | echo -a %a - $decode(#;6]O,u)

#108782 24/01/05 03:36 AM
Joined: Jan 2005
Posts: 2
C
cinex Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: Jan 2005
Posts: 2
//var -s %a $encode(test) | echo 4 -a %a $decode($remove(%a,`))

//var %a $encode(fair) | echo 4 -a %a $decode($remove(%a,`))

sometimes the ` are needed sometimes they arn't

#108783 25/01/05 02:49 PM
Joined: Aug 2003
Posts: 1,825
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,825
True. :[/b])


Link Copied to Clipboard