Advertisement
imk0tter

Memory @ Imk0tter

Sep 12th, 2024
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.65 KB | Science | 0 0
  1. alias NUMBER_TO_NUMBERS {
  2.   .bigfloat on
  3.   var %bits
  4.   var %encrypted $1
  5.   var %count $2
  6.  
  7.   while %count  {
  8.     var %encrypted %encrypted + 1
  9.     var %current_bit 0
  10.  
  11.     while ($calc((%encrypted / (2 ^ %current_bit))  % 2) == 0)  inc %current_bit
  12.  
  13.     var %encrypted  $calc(((%encrypted / (2 ^ %current_bit) + 1) / 2) - 1)
  14.  
  15.     var %bits %current_bit %bits
  16.     dec %count
  17.   }
  18.   return %bits
  19. }
  20.  
  21. alias NUMBERS_TO_NUMBER {
  22.   .bigfloat on
  23.  
  24.   var %encrypted $1 + 1
  25.  
  26.   tokenize 32 $2-
  27.  
  28.   while $0 {
  29.  
  30.     var %encrypted $calc((%encrypted * 2 - 1) * (2 ^ $1))
  31.  
  32.     tokenize 32 $2-
  33.   }
  34.   var %encrypted %encrypted - 1
  35.   return %encrypted
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement