Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. Menu Channel,Query {
  2. -
  3. Encrypt Message:{
  4. set -u0 %~msg $$?="Enter Message to Encrypt"
  5. say $encrypt(%~msg)
  6. echo $chan $timestamp *Encrypted* %~msg
  7. }
  8. }
  9. Alias Encrypt {
  10. if ($1 != $null) {
  11. set -u0 %~encrypt-c 0
  12. set -u0 %~encrypt-m 9ND
  13. :start
  14. inc %~encrypt-c 1
  15. if (%~encrypt-c > $len($1-)) { goto end }
  16. set -u0 %~encrypt-m %~encrypt-m $+ $chr(15) $+ $replace($xor($hash($me,8),$asc($mid($1-,%~encrypt-c,1))),0,,1,,2,,3,3,4,4,5,5,6,6,7,7,8,8,9,9)
  17. goto start
  18. :end
  19. return %~encrypt-m
  20. }
  21. }
  22. Alias Decrypt {
  23. if ($1 != $null) {
  24. set -u0 %~decrypt-c 1
  25. set -u0 %~decrypt-m
  26. :start
  27. inc %~decrypt-c 1
  28. if (%~decrypt-c > $gettok($1,0,15)) { goto end }
  29. set -u0 %~decrypt-m %~decrypt-m $+ $chr($replace($xor($hash($nick,8),$replace($gettok($1,%~decrypt-c,15),,0,,1,,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9)),32,160))
  30. goto start
  31. :end
  32. return %~decrypt-m
  33. }
  34. }
  35. on 1:text:9ND*:#:decrypt $1- | echo $chan $timestamp Encrypted Message From $nick $+ : $result
  36. on 1:text:9ND*:?:decrypt $1- | echo $nick $timestamp Encrypted Message: $result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement