适用于Node.js的AES

编程入门 行业动态 更新时间:2024-10-25 20:18:33
本文介绍了适用于Node.js的AES-CMAC模块吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否存在处理AES-CMAC的Node.js模块( RFC 4493 )?

Is there a Node.js module that handles AES-CMAC (RFC 4493)?

我一直在搜索NPM,Google等,但没有找到.我公司内部有人构建了一个将 Crypto ++ 封装为Node.js的C ++插件,但不幸的是,它没有不能在Windows上构建(取决于 make ).只是在寻找可能的替代方案.

I've been searching around NPM, Google, and the like, but haven't found one. Somebody within my company built one that wraps Crypto++ as a C++ addon for Node.js, but unfortunately it doesn't build on Windows (depends on make). Just looking for possible alternatives.

这类似于其他问题,但是我希望有一个Node.js特定的实现,而不是普通的JavaScript实现.理想的情况是利用Node的加密库或C/C ++插件来提高性能.

This is similar to this other question, but I'm hoping for a Node.js specific implementation instead of a plain JavaScript one. Ideally something that makes use of Node's crypto library or a C/C++ addon for performance.

建造一个似乎并不难,但是如果那里已经有一个,我想避免这样做.

It seems like it wouldn't be too hard to build one, but I'd like to avoid doing so if there is already one out there.

推荐答案

由于找不到任何内容,我最终创建了自己的模块: node-aes-cmac

Since I couldn't find anything, I ended up creating my own module: node-aes-cmac

随着我了解更多,我发现RFC 4493特定于128位密钥(AES128).但它引用了 NIST特殊出版物800-38B 给出了我还需要支持192位和256位密钥的其他信息.

As I learned more, I discovered that RFC 4493 is specific for 128 bit keys (AES128). But it references the NIST Special Publication 800-38B which gave the additional information I needed to support 192 and 256 bit keys as well.

更多推荐

适用于Node.js的AES

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

发布评论

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

>www.elefans.com

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