crypt

module
v0.0.0-...-77a7bef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2023 License: MIT

README

Crypt

Shamir's Secret Sharing in Go

Quick Start

$ make

Example Usage

$ ./crypt encode
Enter the secret: Hello, world!
Enter the number of shares (default 4):
Enter the minimum number of shares (default 2):

Shares:
005a98af88a98a9b2e3690779b10
01eb2c14982fa9a3715200746ec0
02f9d1d77ce90f18280be26f91f1
033f6125039e58a89d1f14e4e1c2
042d9ce6e758fe13c446f6ff1ef3
059c285df7dedd2b9b2266fceb23

$ ./crypt decode
Enter the shares (^D to stop):
01eb2c14982fa9a3715200746ec0
033f6125039e58a89d1f14e4e1c2
059c285df7dedd2b9b2266fceb23

Recovered secret: Hello, world!

Web Version

$ ./server
Serving HTTP on localhost:8000

Open your web browser on localhost:8000

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL