javascript - JavaScript 流密码的实现?

标签 javascript encryption

是否有任何可用于 JavaScript 的流密码的免费使用实现?

对 HC-128、Salsa20/12 或 SOSEMANUK 特别感兴趣,因为 The eSTREAM Project 推荐这些

最佳答案

Symmetric Cryptography in Javascript 的 D 部分指的是“Salsa20/12 的 Javascript 实现”,但我在他们的 github repo 上找不到实现。 .

We compared Javascript AES with a Javascript implementation of Salsa20/12 [20], one of the fastest eSTREAM ciphers. A native x86 implementation of Salsa20/12 is about 5 times faster than a native implementation of 128-bit AES. Surprisingly, Table VII shows that when both algorithms are implemented in Javascript, Salsa 20/12 is comparable in speed to AES. We believe that this discrepancy is primarily due to Javascript’s lack of 128-bit SIMD instructions or of 64-bit registers, and secondarily due to Salsa20/12’s larger state spilling to memory.

关于javascript - JavaScript 流密码的实现?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2543966/

相关文章:

javascript - 返回未定义的表单操作内容

javascript - Foundation 5 可能的 Bug : Uncaught TypeError: Layer must be a document node foundation. min.js:8

javascript - 又一个 JS 新手问题

javascript - 2018年如何检测浏览器是否离线?

javascript - 在迭代 jquery 对象时添加 html

encryption - HSM解密+加密链

javascript - Python - 用于已知解密函数的 Javascript 加密函数

c# - 假设盐是随机的,是否可以从密码(与 key )派生初始化 vector ?

encryption - 三重 DES 解密返回错误的前 16 个字节再次解密时

ssl - 使用加密的客户端证书连接到 docker 主机