danalario Posted May 5, 2011 Share Posted May 5, 2011 I've got a PHP script that calls openssl_encrypt() and when I execute the script I get "Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request."PHP Version is 5.3.5. This is on a server hosted by Site5 hosting.Here's the code: $cryptkey = "foo";$initvect = "fooooooooooooooo";$method = "aes-256-cbc";$ccnocrypt = $_POST["cccno"];$encrypted = openssl_encrypt($ccnocrypt,$method,$cryptkey,$raw_output=false,$initvect); I've confirmed that my Cipher Method is listed in openssl_get_cipher_methods() on my server.I've tried leaving out the Initialization Vector and the Raw_output parameters but it throws a warning and then just stops. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.