fork download
  1. <?
  2.  
  3. $string = 'It works ? Or not it works ?';
  4. $pass = '1234';
  5. $method = 'aes128';
  6.  
  7. file_put_contents ('./file.encrypted', openssl_encrypt ($string, $method, $pass));
  8.  
  9. ?>
  10.  
Runtime error #stdin #stdout 0.02s 13112KB
stdin
1
2
10
42
11
stdout
Fatal error: Call to undefined function openssl_encrypt() in /home/eT9NNq/prog.php on line 7