Display the drop-down list

Test of mcrypt_decrypt()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = [
  
=> 'MCRYPT_RIJNDAEL_128',
  
=> 'some 16 byte key',
  
=> '_DOUBLE_QUOTES_\\xb3\\x21\\xdf\\x8a\\x1e\\x52\\xb5\\x24\\xa6\\xae\\xe7\\x56\\x80\\x0f\\xf4\\x54\\x03\\x47\\x8f\\x06\\x28\\xfc\\x63\\x82\\x8c\\x81\\x46\\x72\\x33\\xa9\\x40\\x1d\\x7b\\xd0\\xc1\\x2c\\x46\\x5b\\x65\\x97\\x31\\xed\\x53\\x3f\\xa4\\xa1\\xd7\\x14\\x3d\\x63\\xa5\\xce\\x35\\x39\\x31\\x6f\\xb0\\x5b\\x67\\x2e\\x75\\x02\\xa2\\x63_DOUBLE_QUOTES_',
  
=> 'MCRYPT_MODE_CBC',
  
=> 'some 16 byte iv.',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'This string was AES-128 / CBC / ZeroBytePadding encrypted.' "\0" '' "\0" '' "\0" '' "\0" '' "\0" '' "\0" '',
  ],
  
'errors' => [
    
=> [
      
'code' => 8192,
      
'message' => 'Function mcrypt_decrypt() is deprecated',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
'base64' => 'syHfih5StSSmrudWgA/0VANHjwYo/GOCjIFGcjOpQB170MEsRltllzHtUz+kodcUPWOlzjU5MW+wW2cudQKiYw==',
  
=> 'MCRYPT_RIJNDAEL_128',
  
=> 'some 16 byte key',
  
=> '$data',
  
=> 'MCRYPT_MODE_CBC',
  
=> 'some 16 byte iv.',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'data' => '!ߊR$VTG(cFr3@{,F[e1S?=c591o[g.uc',
    
'string' => 'This string was AES-128 / CBC / ZeroBytePadding encrypted.' "\0" '' "\0" '' "\0" '' "\0" '' "\0" '' "\0" '',
  ],
  
'errors' => [
    
=> [
      
'code' => 8192,
      
'message' => 'Function mcrypt_decrypt() is deprecated',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
'e_cipher' => 'MCRYPT_RIJNDAEL_128',
  
'e_key' => 'some 16 byte key',
  
'e_data' => 'This string was AES-128 / CBC / ZeroBytePadding encrypted.',
  
'e_mode' => 'MCRYPT_MODE_CBC',
  
'e_iv' => 'some 16 byte iv.',
  
'base64' => '$base64',
  
=> 'MCRYPT_RIJNDAEL_128',
  
=> 'some 16 byte key',
  
=> '$data',
  
=> 'MCRYPT_MODE_CBC',
  
=> 'some 16 byte iv.',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'base64' => 'syHfih5StSSmrudWgA/0VANHjwYo/GOCjIFGcjOpQB170MEsRltllzHtUz+kodcUPWOlzjU5MW+wW2cudQKiYw==',
    
'data' => 'syHfih5StSSmrudWgA/0VANHjwYo/GOCjIFGcjOpQB170MEsRltllzHtUz+kodcUPWOlzjU5MW+wW2cudQKiYw==',
    
'string' => 'This string was AES-128 / CBC / ZeroBytePadding encrypted.' "\0" '' "\0" '' "\0" '' "\0" '' "\0" '' "\0" '',
  ],
  
'errors' => [
    
=> [
      
'code' => 8192,
      
'message' => 'Function mcrypt_encrypt() is deprecated',
    ],
    
=> [
      
'code' => 8192,
      
'message' => 'Function mcrypt_decrypt() is deprecated',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]