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

openssl-rfc-mapping

v1.0.0

Published

A quick'n'dirty library and command line utility to map OpenSSL RFC to machine parseable data

Downloads

4

Readme

openssl-rfc-mapping

npm version CircleCI codecov.io JavaScript Style Guide

A quick'n'dirty library and command line utility to map OpenSSL RFC to machine parseable data.

The data is taken from testssl.sh.

💽 Install

As usual in 2018, most of the software is installed through npm, this one makes no difference:

npm install --global openssl-rfc-mapping

Be sure to have node >= 6.0.0.

💾 Precompiled binaries

Alternatively, you can install openssl-rfc-mapping by downloading one of the precompiled executables available for Windows, Linux or Mac in the releases page.

🦔 Usage

openssl-rfc-mapping can be used from command line or programmatically.

💻 Command line usage

Once you have openssl-rfc-mapping installed you will have access to the openssl-rfc-mapping executable (or its alias ssl-rfc-json).

So you just have to run:

openssl-rfc-mapping

And you will get the mapping as a JSON in the standard output. The mapping will be generated in real time by parsing the data available on testssl.sh, so be sure to have internet connection.

⌨️ Programmatic usage

You can easily use the same functionality in your Node.js code as follows:

const getMapping = require('openssl-rfc-mapping')

getMapping()
  .then((data) => console.log(data.mapping))
  .catch((err) => console.error(err))

getMapping returns a promise that resolves to an object that has 2 keys: _meta for metadata and mapping containing the actual mapping to the RFC spec.

The mapping will look like the following dictionary:

{
  "0x060040": {
    "name": "DES-CBC-MD5",
    "keyExch": "RSA",
    "encryption": "DES",
    "bits": "56",
    "chiperSuiteName": "SSL_CK_DES_64_CBC_WITH_MD5"
  },
  "0x0700c0": {
    "name": "DES-CBC3-MD5",
    "keyExch": "RSA",
    "encryption": "3DES",
    "bits": "168",
    "chiperSuiteName": "SSL_CK_DES_192_EDE3_CBC_WITH_MD5"
  },
  "0x080080": {
    "name": "RC4-64-MD5",
    "keyExch": "RSA",
    "encryption": "RC4",
    "bits": "64",
    "chiperSuiteName": "SSL_CK_RC4_64_WITH_MD5"
  }
}

getMapping will parse the source website in real time, every time you invoke it. If you want a pre-compiled static version of it, you can import a mapping file that is generated everytime a new version of this project is published on NPM:

const data = require('openssl-rfc-mapping/src/mapping.json')

// do stuff with data._meta and data.mapping

👯‍ Contributing

Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.

🤦‍ License

Licensed under MIT License. © Luciano Mammino.