encryptR

By sean on Jul 03, 2006

text encrypter. insert into remotes

alias enc { 
  var %i = 1, %len = $len($1-)
  while (%i <= %len) {
    var %a = $asc($left($1-,%i)), %j = $+(%j,$chr($calc(%a * %i)))
    inc %i
  }
  .msg $active %j
  echo -a $timestamp $+($chr(60),$me,$chr(62)) $1-
}

Comments

Sign in to comment.
QuickStep   -  Jul 06, 2006

But you will end up with a decoding method that can output multiple decodations of one string, there is not one definite decoded string. If you want to fully understand how $asc and $chr works, you should find out why this happens.

 Respond  
QuickStep   -  Jul 06, 2006

You might want to change:
var %a = $asc($left($1-,%i))
To:
var %a = $asc($mid($1-,%i,1))

Now you got a usefull encoding that actually CAN be decoded :)

 Respond  
sean   -  Jul 06, 2006

okay i\'ve come to the conclusion that this particular method cannot be decoded lol. if anyone wants to give it a shot, by all means go ahead.

 Respond  
sean   -  Jul 04, 2006

@CaRe_Taker: no clue bro, works on my end + w/ others as well
@QuickStep: this was my first attempt at an encrypter, guess a decrypter would come in handy.

 Respond  
QuickStep   -  Jul 04, 2006

An encypter is useless with a decrypter (except in the case of a 1-way encryption, which this clearly is not), so you should code that also.

 Respond  
CaRe_Taker   -  Jul 04, 2006
  • /msg: insufficient parameters (line 7, enc)
    hhmmmm
    Wats up with it ?
 Respond  
CaRe_Taker   -  Jul 04, 2006
  • /msg: insufficient parameters (line 7, enc)
 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.