encrypter

By sean on Jul 06, 2006

//echo -ae $_enc(test cows)
standard encryption and decryption example

alias _enc { 
  var %i = 1, %s = $replace($1-, $chr(32), $chr(1)), %r
  while (%i <= $len($1-)) {
    %r = $instok(%r, $base($calc($asc($mid(%s, %i, 1)) * %i), 10, 16), $calc($numtok(%r, 46) + 1), 46)    
    inc %i
  }
  return %r
}

alias _dec {
  var %i = 1, %x = $numtok($1-, 46), %r
  while (%i <= %x) {
    %r = $+(%r, $chr($calc($base($gettok($1-, %i, 46), 16, 10) / %i)))
    inc %i
  }
  return $replace(%r, $chr(1), $chr(32))
}

Comments

Sign in to comment.
sean   -  Jul 02, 2011

@Mfoust: Just tested in mIRC 7.19 and works fine (surprisingly)

 Respond  
Mfoust   -  Feb 24, 2011

nice job bro, literaly everytime i open my mirc it crashes now

 Respond  
iBook   -  Sep 12, 2008

Love the script, thanks

 Respond  
EliteT0kr   -  Jul 25, 2006

try being a little more original when writing scripts. at first glance i thought this was my old encryption script.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.