JavaScript流密码的实现?

是否可以免费使用可用于
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.

点赞