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-rsa

v0.1.1

Published

Generate RSA keys pair using OpenSSL

Downloads

10

Readme

openssl-rsa

Description

Generate RSA keys pair using OpenSSL.

Using template:

openssl-rsa [<size>] [-c] [-f]

Params:

  • <size> - key size (default: 2048);
  • -c - use colors;
  • -f - save keys to files private.key and public.key.

Installation

npm install -g openssl-rsa

Using samples

# Generate RSA keys pair.
openssl-rsa

# Generate RSA keys pair with custom key size.
openssl-rsa 1024

# Generate RSA keys pair and use colors.
openssl-rsa 1024 -c

# Generate RSA keys pair and save to files.
openssl-rsa -f

Result sample

-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEArX720StoLKMEPSHDHRIERpCxco39GycX9xJs8aI1IaweVQpH
LrX2sP5R8NQwy4CvQ77rIHvxslaqCMHlkJDV9BCFvEaoZ5B9lAIQri+Ee4tvm3E+
tHUseDZmSLq/K+EZ0mJ1k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qGKbgC9jKUCgYAKQz8Vv1l1c8TytGDiaREHYPrrSObvuF6/KjuU
KR+R5rB1qpN6+Z5Ro7vEhmOU3LHMutMr2TmkhnSmD13wepHg4oYar+JOWpRzCeFM
yqo7oCipCDnr2VtEVbEXAwaiZ/zAjyqdPsOJYH9JXLzmKGuwAVQwzJBso0Bf/1Ki
Y1Hn9wKBgQCmV+eQGGKqvOZJWwlVSSTrQ140mt5xGg50MdSFHyxqJ1ncQ0bN3tT7
4PRI/4eZUDTecCRO6OvMY6am8di52JIKgjJEVN+NOluOT+Lscf96q2pb3Xw6BZ2+
zsM+yBXP249LfvohrYU651KCI9jnoCkoK7/uvTj5DZJ/ULE3c2TKCg==
-----END RSA PRIVATE KEY-----

-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArX720StoLKMEPSHDHRIE
RpCxco39GycX9xJs8aI1IaweVQpHLrX2sP5R8NQwy4CvQ77rIHvxslaqCMHlkJDV
9BCFvEaoZ5B9lAIQri+Ee4tvm3E+tHUseDZmSLq/K+EZ0mJ1kh67/myx4RT8i3uQ
d3l1PolEECcSTiQx4AhhzdQobjTDeeXRIOQBfHuQSzNPpD8CGgHXE089VoddlAw8
wa9Kz3R/bim3+2+k9jD9s7L9oZIJmhP7tfpugqXTKrH50dwJN/TkrhYHi40I6wLJ
m+fcoPtRzjczYSfFz/+tBWFzyBKTQp+w+FZ9Ker/MKlh2HPe+VACI0JgwSPhb846
ywIDAQAB
-----END PUBLIC KEY-----

License

The MIT License (MIT)

Copyright © 2019 - 2021 Volodymyr Sichka

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.