如何使用javascript为生成的SHA-256字符串执行10次迭代?

时间:2016-11-15 16:57:22

标签: javascript

我正在尝试使用SHA-256进行加密输入,换句话说我打算使用SHA25进行哈希。这是我发现的代码,但是我的要求是对生成的SHA字符串进行10次迭代现在使用此代码只进行1次迭代我该怎么做?

<form action="#" method="post">
 Enter a text:<br/>
 <input type="text" name="strex" id="strex" size="20" /> <button id="cryptstr">Encrypt</button><br/>
 SHA256 hash string:<br/>
<input type="text" name="strcrypt" id="strcrypt" size="33" />
</form>

以下是完整代码https://jsfiddle.net/arty3z8z/

的链接

0 个答案:

没有答案