HMAC-SHA-512 FPGA实现的动作动作、SHA、HMAC、FPGA

由网友(我爹他儿子最帅)分享简介:正如这个书名,我想找到的ActionScript编写的HMAC-SHA-512的实现。我能找到一个库,提供HMAC-SHA-256与其他功能,但是,我要寻找HMAC-SHA-512具体。As mentioned by the title, I would like to find an implementation...

正如这个书名,我想找到的ActionScript编写的HMAC-SHA-512的实现。我能找到一个库,提供HMAC-SHA-256与其他功能,但是,我要寻找HMAC-SHA-512具体。

As mentioned by the title, I would like to find an implementation for HMAC-SHA-512 written for ActionScript. I was able to find a library that provide HMAC-SHA-256 with other functions, however, I am looking for HMAC-SHA-512 specifically.

感谢您

编辑:

或者,由于动作和JavaScript有着相同的起源,可以有一个人口这个JavaScript版本为ActionScript?

Or, since actionscript and javascript have the same origin, can some one port this javascript version into actionscript?

http://pajhome.org.uk/crypt/md5/sha512.html

编辑2:

我已经移植了code从JavaScript来动作。在code可以在其中一个答案中找到了这个问题 Porting SHA-512 Javascript实现为ActionScript

I already ported the code from javascript to actionscript. The code can be found in one of the answers in this question Porting SHA-512 Javascript implementation to Actionscript

推荐答案

你链接到似乎并没有被使用不支持的ActionScript 3的刚环绕整个事情与任何功能的实现公共类SHA512 {} ,和preFIX前五个函数公开

The implementation you link to doesn't seem to be using any features that aren't supported by ActionScript 3. Just surround the whole thing with public class SHA512 { }, and prefix the first five functions with public.

编辑:您还需要为函数的Int64 转换成它自己的类(或可能使用,虽然我不知道,如果你将失去precision为64位整数)。

You will also need to convert function int64 to it's own class (or possibly use Number, though I'm not sure if you will lose precision for 64-bit integers).

阅读全文

相关推荐

最新文章