imk0tter
Jul 10th, 2025
61
0
Never
This is comment for paste Imk0tter's Encryption @ mIRC
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
Advertisement
Add Comment
Please, Sign In to add comment