AS3 AIR应用程序与HMACSHA512加密 [英] AS3 Air App with HMACSHA512 Encryption

查看:175
本文介绍了AS3 AIR应用程序与HMACSHA512加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我开发一个AIR应用程序,它通过使用HMACSHA512加密标准的一个HTTP API需要消息验证和签名。

Hi I'm developing an Air App that requires authentication and signing of messages via a http api using the HMACSHA512 Encryption standard.

我发现了一个AS3的库,它看起来货物 https://github.com/rubo/flame < /一>,但其ppared Flex和我有很多的麻烦试图让它在空气/闪存IDE工作和/或提取的核心功能,我需要。是$ P $

I've found an AS3 library which looks the goods at https://github.com/rubo/flame but its been prepared for flex and I've had a lot of trouble trying to get it to work under Air/Flash IDE and/or extracting the core functions I need.

这将是非常美妙的,如果有人可以帮助我得到的火焰库/ SWC通过Flash IDE与workine简单的例子code加载加密邮件'你好'像...

It would be fantastic if someone could help me getting the flame library / swc loaded via the flash IDE with workine simple example code for encrypting the message 'hello' something like...

import flame.crypto.HMACSHA512;
var test:HMACSHA512 = new HMACSHA512(ByteArrayUtil.fromHexString('mySecretKey'));
trace('encrypted output = ' + test.encryptString('hello'));

在此先感谢!

Thanks in advance!

推荐答案

由于动作和JavaScript基于ECMAScript,你总是可以(而且几乎总是很容易),通过JavaScript口东西。 例如实现加密算法。

Since actionscript and javascript based on ECMAScript, you can always(and almost always easily) port something from javascript. For example implementation of encryption algorithm.

不过!有人曾这样已经完成。 <一href="http://stackoverflow.com/questions/1267873/porting-sha512-javascript-implemention-to-actionscript">SEE如何

But! Someone had this already done. SEE HOW

这篇关于AS3 AIR应用程序与HMACSHA512加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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