Coder Social home page Coder Social logo

anything2ed25519's Introduction

Make a SSH Ed25519 private/public keypair of anything you can pipe into a UNIX pipe

Usage of anything2ed25519:
  -force
    	When true, you ignore the author's recommendation about seed size
    	(should be at minimum 32 chars, more is better) and continues with your stupidness
  -privfile string
    	Filename to write private key to (default "id_ed25519")
  -privtoerr
    	When true, the tool prints private key to stderr and public to stdout
  -pubfile string
    	Filename to write public key to (default "id_ed25519.pub")
  -write
    	When true it writes the private and public keys to file (default true)

The command is intended to work with pipes.
Example:
	echo 'never lose a key again 81S1r8zpVuFjpJ5odwDTmplp4HZ5JskQ' | anything2ed25519

Install (for golang users)

go install 0xcc.re/anything2ed25519@latest

Compile

export GOLANG="$PWD/go"
mkdir -p go/src/0xcc.re
cd go/src/0xcc.re
git clone https://github.com/mikalv/anything2ed25519.git
cd anything2ed25519
./build.sh

Example usage

NOTE Please don't be stupid and use this key, or anything else with a WEAK seed. (As "Hello World" is...)

anything2ed25519 [main●] % echo "Hello World" | ./bin/anything2ed25519-darwin-amd64.macho
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtz
c2gtZWQyNTUxOQAAACBkj/xWESur4UT48VFau6Vkk56Kzt48qvJk/UGR2DS7dAAA
AIiaywRCmssEQgAAAAtzc2gtZWQyNTUxOQAAACBkj/xWESur4UT48VFau6Vkk56K
zt48qvJk/UGR2DS7dAAAAEBhNTkxYTZkNDBiZjQyMDQwNGEwMTE3MzNjZmI3YjE5
MGSP/FYRK6vhRPjxUVq7pWSTnorO3jyq8mT9QZHYNLt0AAAAAAECAwQF
-----END OPENSSH PRIVATE KEY-----

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICv3hIFN8Aw2k16freruJ1Ve4L0V7Z6bKwnYrV7R071+

Prebuilt binaries

Check out the directory bin

Notes

The crypto is experimental, however don't be stupid. echo'ing "password", or "abc" or "hello world" or anything common into anything2ed25519 - don't ever use that anywhere, since people can guess your private key.. This is like a bitcoin "mnemonic code" and should have at least 24 words..

Changelog

  • 2022-02-01 patch#3 : The tool now requires -force flag to create bad/too weak seeds
  • 2022-02-01 patch#2 : Added flags and more usability stuff
  • 2022-02-01 patch#1 : Some bugs found and fixed after public release, thanks to people at lobste.rs
  • ~3-4yrs ago: Initial write

Author

Mikal Villa [email protected]

anything2ed25519's People

Contributors

mikalv avatar rjc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.