Exception when calling MessageDigest.getInstance(“SHA256”)

前端 未结 2 2054
孤独总比滥情好
孤独总比滥情好 2021-02-04 02:02

I have code that works well on Android. When I ported it to my Windows 64-bit machine with JRE 1.6, the code did not work.

When I run the following line of code:

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-04 02:58

    SHA-256 should be the parameter to getInstance()

    Link for the list of algorithms supported for message digest

提交回复
热议问题