Changed constant OPENSSL_ALGO_SHA256 to string 'sha256' to maintain backwards compatibility with PHP 5.3.