npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ant-crypto-core

v1.0.1

Published

Modify from the [Microsoft Research JavaScript Cryptography Library](https://www.microsoft.com/en-us/download/details.aspx?id=52439). I make a little change to make it work on mini program such as [Dingtalk EApp](https://open-doc.dingtalk.com/microapp/ln6

Downloads

10

Readme

ant-crypto-core

Modify from the Microsoft Research JavaScript Cryptography Library. I make a little change to make it work on mini program such as Dingtalk EApp and Alipay miniapp.The previous features are are almost unaffected.

What's MSR Crypto Library

The Microsoft Research JavaScript Cryptography Library has been developed for use with cloud services in an HTML5 compliant and forward-looking manner.

The algorithms are exposed via the W3C WebCrypto interface, and are tested against the Microsoft Edge implementation of that interface.

The library currently supports RSA encrypt/decrypt (PKCS#1 v1.5, OAEP, and PSS), AES-CBC and GCM encrypt/decrypt, SHA-256/384/512, HMAC with supported hash functions, PRNG (AES-CTR based) as specified by NIST, ECDH, ECDSA, and KDF (Concat mode).

The library is tested on IE8,9,10,11, Microsoft Edge and latest Firefox, Chrome, Opera, and Safari browsers.

This library includes big-number integer arithmetic to support the aforementioned cryptographic algorithms. It supports unsigned big integer arithmetic with addition, subtraction, multiplication, division, reduction, inversion, GCD, extended Euclidean algorithm (EEA), Montgomery multiplication, and modular exponentiation. It provides useful utility functions, such as endianness management and conversion routines. The big integer library is likely to change in future releases. There are also unit tests and some sample code.

This library is under active development. Future updates to this library may change the programming interfaces.

ant-morse/msrCrypto is a mirror on Github.

Where I modified

msrcrypto.js and msrcrypto.aes.js:

  • Remove the polyfill of Promise. You can provide by yourself If needed.
  • Add export.
  • Run in async mode if window or global is undefined.
  • Jump what EventListener do if addEventListener is undefined.
  • Jump what attachEvent and detachEvent do if they are both undefined.
  • Move out msrcryptoUtilities and publish separately as ant-crypto-utils.

Thanks

Thanks to kevlened for his outstanding work. I got the inspiration from his isomorphic-webcrypto.