GithubHelp home page GithubHelp logo

miqoas / otterkeys Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 207 KB

:rat::closed_lock_with_key: A .NET Core Tool to quickly create Ed25519 key pairs for signing and verifying messages or other data.

License: MIT License

Dockerfile 2.39% C# 97.61%
dotnet-core dotnetcore ed25519 keypair cli-tool

otterkeys's Introduction

๐Ÿ€๐Ÿ” OtterKeys

forthebadge forthebadge

A .NET Core Tool to quickly create Ed25519 key pairs for signing and verifying messages or other data.

Installation

Download and install the .NET Core 2.1 SDK or newer. Once installed, run the following command to run OtterKeys:

dotnet tool install -g OtterKeys

Usage

Once installed you can call OtterKeys from the command line:

usage

You can use the --help option to get more details about the commands and their options.

Creating a new key pair

Creating a new Ed25519 key pair is as easy as typing:

usage

Otter will print the private and public key.

The private key should be stored securely and should be unique for each of your products. The public key is distributed with your software.

Specify key pair output format

You can specify a key pair output format by adding the option -o. Possible formats are base64, byte and hex. Example:

usage

The default output format is a base64 formatted string.

Recovering a public key

A lost public key can be recovered from a private key by running the following command:

usage

You can specify an input and output format by adding the options -i and -o. The recover command supports base64 and hex as input formats, and base64, byte and hex as output formats.

Example:

usage

Acknowledgements

Otter uses the excellent NSec library.

otterkeys's People

Contributors

natsuo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

otterkeys's Issues

Hex encoded keys

The default format is a base64 encoded string, not a hex formatted string.

The user should be able to specify hex, base64 or byte as output format options, and hex should be the default option.

Missing trailing comma in byte array formatted output

Each line in the outputted byte array should end with a comma.

0x8F, 0xAE, 0x61, 0xDB, 0x61, 0x7C, 0xF9, 0xE1,
0x91, 0x09, 0x0C, 0xBA, 0x7A, 0xCA, 0x93, 0x30,
0xED, 0x5E, 0x9F, 0xD6, 0x0E, 0xD9, 0x6E, 0xD4,
0xEA, 0xE7, 0x8F, 0xF7, 0x42, 0x4A, 0x3F, 0x4D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.