AS3 Air应用与HMACSHA512加密

编程入门 行业动态 更新时间:2024-10-23 14:22:45
本文介绍了AS3 Air应用与HMACSHA512加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在开发一个Air App,它需要通过使用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库它在 github/rubo/flame 查看货物,但它已经准备好了flex和我有很多麻烦,试图让它在Air / Flash IDE下工作和/或提取我需要的核心功能。

I've found an AS3 library which looks the goods at github/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.

如果有人可以帮助我通过Flash IDE加载火焰库/ swc,并使用工作简单的示例代码来加密消息hello,如...

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'));

提前感谢

推荐答案

由于actioncript和基于ECMAScript的javascript,您可以随时(并且几乎总是很容易)从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.

但是!有人已经这样做了。 看看

But! Someone had this already done. SEE HOW

更多推荐

AS3 Air应用与HMACSHA512加密

本文发布于:2023-11-23 13:55:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621673.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Air

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!