Neoplastic Plasma Medusa

    openssl-rsa

    0.1.1 • Public • Published

    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+EZ0mJ1kh67/myx4RT8i3uQd3l1PolEECcSTiQx4AhhzdQobjTD
    eeXRIOQBfHuQSzNPpD8CGgHXE089VoddlAw8wa9Kz3R/bim3+2+k9jD9s7L9oZIJ
    mhP7tfpugqXTKrH50dwJN/TkrhYHi40I6wLJm+fcoPtRzjczYSfFz/+tBWFzyBKT
    Qp+w+FZ9Ker/MKlh2HPe+VACI0JgwSPhb846ywIDAQABAoIBAQCg58im85f5FfM/
    cwmO83+tplI8SP196kLqrVcGvwaBxSyYeCDObIpvWl7KeTEL+7wQm4dbqDffy0qF
    Nrbe3cTgR1aQ6AMVkcc1tribo4w+PHJ0+pFKMgXdM66nMzNL0cft+8zIiOKXs11B
    wAH8psu0UpvvNMVAKcxrVlw/R+bVSa/TejmoI9FcL2y/Jmix2LrTmhegqySZV2ij
    256qvxolkGmQiPmtGxjrdq9woNvK2S3Fu+nBI5z1zB5S/dK9mCZAijzd5uxo+Ic8
    RAxyI76UMsUYMX345+mfWSvFswZ5dOVmiIoaBTiTG7ExyHsf/T/EoRTEOfARN1yF
    oDVskShpAoGBAOAPjOifHRmfdsPuurBatVQVvjbzpX+H0BW30JHwyJHV+6tYIneM
    pPjVibqn38GrhzCaH7AlL9HHhGP8OqzTxlGBXQN0lhbWT1E1ShR786nigjAmWxU7
    977BFBaKbvSljIfDmH8miqa05vD8Y6SamXDAlRQchFR2mXPwwgwtgd1NAoGBAMY6
    MqBJlCryrPdFwn4l1VRHGIqC/zeNzgRzMSWzxpW2FjV/EWUcFuFyaX9yKb4T9/V7
    9Lu/hxxzrVinf2woUSR48dTXjv6iIEN6Bv310PED3pcd3909H3BqpGHKjhqa6ODV
    TwbRqFaeV9AEGA99wzhJWgVWogFVaOS9bQCs88x3AoGAFRIBS0LjRqyTS5ugnML6
    +FxPFfXVo2ePLuupRoAhLG22DAfuvdVREkFqgU4WIa1SukRUJIlqtMyRa6GllukX
    ZkTHDXMiRiWDMfzT6Zc6c8hkO8jvmdCY3KxlijUceA81ZvMC3TovobuzWAg0Cp+r
    PEov+sMvwo2goqGKbgC9jKUCgYAKQz8Vv1l1c8TytGDiaREHYPrrSObvuF6/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.

    Install

    npm i openssl-rsa

    DownloadsWeekly Downloads

    4

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    11.1 kB

    Total Files

    6

    Last publish

    Collaborators

    • volodymyr.sichka