imk0tter

Imk0tter's Encryption @ mIRC

Jul 10th, 2025
1,641
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.01 KB | None | 0 0
  1. alias -l ABSN return $CALC(($1 * $1) ^ (2 ^ -1))
  2. alias -l ARCTAN return $CALC($1 / $ABSN($1))
  3. alias -l TRICK return $ARCTAN($CALC($1 + $ARCTAN($CALC($1 ^ $ARCTAN($1)))))
  4.  
  5. alias ENCRYPT return $CALC((($1 * 2) + $TRICK($2)) * (2 ^ $ABSN($2)))
  6. alias ENCRYPT2 return $CALC((($1 / 2) + $TRICK($2)) / (2 ^ $ABSN($2)))
  7.  
  8. alias ENCRYPT_BATCH {
  9.   var %base $1
  10.   tokenize 32 $2-
  11.   var %encrypt_count $0
  12.   var %x 1
  13.   while %x <= %encrypt_count {
  14.     var %current [ $ $+ [ %x ] ]
  15.     var %base $ENCRYPT(%base, %current)
  16.     inc %x
  17.   }
  18.   return %base
  19. }
  20. alias DECRYPT {
  21.   var %BASE $1
  22.   var %CURRENT 0
  23.   while $CALC(%BASE % 2) == 0 {
  24.     var %BASE %BASE / 2
  25.     inc %CURRENT
  26.   }
  27.   var %BASE $CALC((%BASE - 1) / 2)
  28.   return %BASE %CURRENT
  29. }
  30. alias DECRYPT_BATCH {
  31.   var %BASE $1
  32.   var %COUNT $2
  33.   var %DECRYPTED
  34.   while %COUNT {
  35.     var %CURRENT_TOKEN $DECRYPT(%BASE)
  36.     var %BASE $TOKEN(%CURRENT_TOKEN,1,32)
  37.     var %DECRYPTED $TOKEN(%CURRENT_TOKEN,2,32) %DECRYPTED
  38.     dec %COUNT
  39.   }
  40.   return %BASE %DECRYPTED
  41. }
Advertisement
Comments
  • imk0tter
    51 days
    # mIRC 0.53 KB | 0 0
    1. alias ENCRYPT_ASCII {
    2.   var %COUNT $LEN($1-)
    3.   var %x 1
    4.   var %BASE 0
    5.  
    6.   while %x <= %COUNT {
    7.     var %CURRENT $mid($1-,%x,1)
    8.     var %BASE $ENCRYPT(%BASE,$ASC(%CURRENT))
    9.     inc %x
    10.   }
    11.  
    12.   return %BASE
    13. }
    14. alias DECRYPT_ASCII {
    15.   var %BASE $1
    16.   while %BASE != 0 {
    17.     var %CURRENT_TOKEN $DECRYPT(%BASE)
    18.     var %BASE $TOKEN(%CURRENT_TOKEN,1,32)
    19.     var %CHAR $TOKEN(%CURRENT_TOKEN,2,32)
    20.  
    21.     if ($BVAR(&STRING,0) > 0) bcopy &STRING 2 &STRING 1 -1
    22.     bset &STRING 1 %CHAR
    23.   }
    24.   return $BVAR(&STRING,1,$BVAR(&STRING,0)).text
    25. }
Add Comment
Please, Sign In to add comment