sha256加密在erlang [英] sha256 encryption in erlang

查看:374
本文介绍了sha256加密在erlang的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在PHP中编写了一些代码,我使用mhash(MHASH_SHA256,$ key)和它的给定结果如预期。我想知道如何在erlang.i中实现同样的事情在加密中可以看到它们是一个inbuild sha功能是他们,但我不认为这是sha256的意思。



任何建议我要做什么?



谢谢你提前。

解决方案

你看过此页面,链接到 Erlang的SHA-256模块



编辑:显然代码已经过时,被这个模块。如果仍然没有做你想要的(十六进制/二进制),我建议你给他的作者发邮件,最好用补丁。


i have written some code in php there i have use mhash(MHASH_SHA256, $key) and its giving result as expected.i wanna know how we can achieve same thing in erlang.i can see in crypto their is one inbuild sha function is their but i dont think so its mean for sha256.

any suggestion what i have to do ?

thank you in advance.

解决方案

Have you seen this page, which links to an SHA-256 module for Erlang?

EDIT: Apparently that code is obsolete, replaced by this module. If that still doesn't do what you want (in terms of hex/binary) I suggest you email its author, preferably with a patch.

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

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