PHP中对sha256的openssl版本支持 [英] which openssl version support for sha256 in php

查看:598
本文介绍了PHP中对sha256的openssl版本支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我们的客户编写了一个简单的PHP库.该库使用带有SHA256算法的openssl验证和签名方法.我认为SHA256的这种算法支持是PHP和openssl的新功能.但是我不知道开始支持SHA256的版本.

I have written a simple php library for our clients. This library uses the openssl verify and sign methods, with the algorithm of SHA256. I think this algorithm support of SHA256 is kind of new for PHP and openssl. But I dont know the version in which the support for SHA256 has started.

这会导致使用早期版本的openssl和php的客户端出现一些问题.我找不到上面指定的版本.

This causes some problems with the clients using earlier versions of openssl and php. And i couldnt find the version I specified above.

那么,openssl是什么版本的,它首先开始在rsa签名和验证中支持sha256?

So what is the version, openssl first started to support sha256 in rsa signing and verifying?

先谢谢了.

推荐答案

由于

Due to PHP DOCS OPENSSL_ALGO_SHA256 constant vas first added in PHP 5.4.8.

在尝试验证SHA256时,我也遇到了此问题.不知道现在该怎么做)

I've also faced this problem while trying to verify SHA256. Don't know what to do now )

这篇关于PHP中对sha256的openssl版本支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆