Display the drop-down list

Test of mcrypt_encrypt()

Example #1 : test success
Example #1
$input = [
  
=> 'MCRYPT_RIJNDAEL_128',
  
=> 'some 16 byte key',
  
=> 'This string was AES-128 / CBC / ZeroBytePadding encrypted.',
  
=> 'MCRYPT_MODE_CBC',
  
=> 'some 16 byte iv.',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '!ߊR$VTG(cFr3@{,F[e1S?=c591o[g.uc',
    
'base64' => 'syHfih5StSSmrudWgA/0VANHjwYo/GOCjIFGcjOpQB170MEsRltllzHtUz+kodcUPWOlzjU5MW+wW2cudQKiYw==',
    
'decrypted' => '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',
]