A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Red Pike cipher - Stikked
From Soft Hornbill, 11 Years ago, written in C.
Embed
  1. /* Red Pike cipher source code */
  2.  
  3. #include <stdint.h>
  4.  
  5. typedef uint32_t word;
  6.  
  7. #define CONST 0x9E3779B9
  8. #define ROUNDS 16
  9.  
  10. #define ROTL(X, R) (((X) << ((R) & 31)) | ((X) >> (32 - ((R) & 31))))
  11. #define ROTR(X, R) (((X) >> ((R) & 31)) | ((X) << (32 - ((R) & 31))))
  12.  
  13. void encrypt(word * x, const word * k)
  14. {
  15.   unsigned int i;
  16.   word rk0 = k[0];
  17.   word rk1 = k[1];
  18.  
  19.   for (i = 0; i < ROUNDS; i++)
  20.   {
  21.     rk0 += CONST;
  22.     rk1 -= CONST;
  23.  
  24.     x[0] ^= rk0;
  25.     x[0] += x[1];
  26.     x[0] = ROTL(x[0], x[1]);
  27.  
  28.     x[1] = ROTR(x[1], x[0]);
  29.     x[1] -= x[0];
  30.     x[1] ^= rk1;
  31.   }
  32.  
  33.   rk0 = x[0]; x[0] = x[1]; x[1] = rk0;
  34. }
  35.  
  36. void decrypt(word * x, const word * k)
  37. {
  38.   word dk[2] =
  39.   {
  40.     k[1] - CONST * (ROUNDS + 1),
  41.     k[0] + CONST * (ROUNDS + 1)
  42.   };
  43.  
  44.   encrypt(x, dk);
  45. }
  46.