Display the drop-down list

Test of openssl_decrypt()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = [
  
=> 'eXIp3BnsELdTuTvVkpoFqXuYoP6zd73ETDXiNcMhXUiuAm0ju4ufdX9Yxai4X7S3',
  
=> 'AES-128-ECB',
  
=> 'some password',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'This string was AES-128 / ECB encrypted.',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> '_DOUBLE_QUOTES_\\x79\\x72\\x29\\xdc\\x19\\xec\\x10\\xb7\\x53\\xb9\\x3b\\xd5\\x92\\x9a\\x05\\xa9\\x7b\\x98\\xa0\\xfe\\xb3\\x77\\xbd\\xc4\\x4c\\x35\\xe2\\x35\\xc3\\x21\\x5d\\x48\\xae\\x02\\x6d\\x23\\xbb\\x8b\\x9f\\x75\\x7f\\x58\\xc5\\xa8\\xb8\\x5f\\xb4\\xb7_DOUBLE_QUOTES_',
  
=> 'AES-128-ECB',
  
=> 'some password',
  
=> 'OPENSSL_RAW_DATA',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'This string was AES-128 / ECB encrypted.',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
'e_data' => 'This string was AES-128 / ECB encrypted.',
  
'e_method' => 'AES-128-ECB',
  
'e_password' => 'some password',
  
=> '$data',
  
=> 'AES-128-ECB',
  
=> 'some password',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'data' => 'eXIp3BnsELdTuTvVkpoFqXuYoP6zd73ETDXiNcMhXUiuAm0ju4ufdX9Yxai4X7S3',
    
'string' => 'This string was AES-128 / ECB encrypted.',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
'e_data' => 'This string was AES-128 / ECB encrypted.',
  
'e_method' => 'AES-128-ECB',
  
'e_password' => 'some password',
  
'e_options' => 'OPENSSL_RAW_DATA',
  
=> '$data',
  
=> 'AES-128-ECB',
  
=> 'some password',
  
=> 'OPENSSL_RAW_DATA',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'data' => 'yr)S;Ւ{wL55!]Hm#uXŨ_',
    
'base64' => 'eXIp3BnsELdTuTvVkpoFqXuYoP6zd73ETDXiNcMhXUiuAm0ju4ufdX9Yxai4X7S3',
    
'string' => 'This string was AES-128 / ECB encrypted.',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]