clv1

module
v0.0.0-...-c45e87f Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: BSD-3-Clause

README

Cypherlock

Ratchet based key expiry tool against forced decryption and for expiring backups.

PROOF OF CONCEPT CODE - DO NOT USE IN PRODUCTION UNLESS YOU KNOW EXACTLY WHAT YOU DO

Installation

go get -u -v github.com/cypherlock-pf/clv1/cmd/...

Usage

First we create a new Cypherlock server:

$ cypherlockd -create
cypherlockd: minimal Cypherlock server
Server created.
SignatureKey: 8ad30073d3b5090eae94715304ec0916ea77bde2b3c3512e51ac55453bbe0c77

Then we let it run on the default interface (change interface with -addr):

$ cypherlockd -serve
cypherlockd: minimal Cypherlock server
Serving...
SignatureKey: 8ad30073d3b5090eae94715304ec0916ea77bde2b3c3512e51ac55453bbe0c77

Now we want to encrypt a time-locked secret file:

$ exec 3<secret; cypherlock -create -sigkey 8ad30073d3b5090eae94715304ec0916ea77bde2b3c3512e51ac55453bbe0c77
Please enter passphrase (no echo):
Please repeat passphrase (no echo):

Lock created. From "Wed Sep 19 22:40:27 +0000 UTC 2022" to "Wed Sep 19 23:10:27 +0000 UTC 2022"

To unlock the time-locked secret via the Cypherlock server and store it in file secret2:

$ exec 3>secret2; cypherlock -unlock -sigkey 8ad30073d3b5090eae94715304ec0916ea77bde2b3c3512e51ac55453bbe0c77
Please enter passphrase (no echo):

Now we have the content of the original secret file in secret2.

Directories

Path Synopsis
Package clientinterface implements an interface to read and write client data.
Package clientinterface implements an interface to read and write client data.
Package clrpcclient implements client RPC methods for Cypherlock access.
Package clrpcclient implements client RPC methods for Cypherlock access.
Package clrpcserver implements client and server RPC methods to call Cypherlock.
Package clrpcserver implements client and server RPC methods to call Cypherlock.
cmd
cypherlock
cypherlock implements a Cypherlock client.
cypherlock implements a Cypherlock client.
cypherlockd
cypherlockd implements a Cypherlock server.
cypherlockd implements a Cypherlock server.
Package msgcrypt implements message enryption and decryption.
Package msgcrypt implements message enryption and decryption.
Package ratchet implements a ratcheting algorithm to generate keypairs for curve25519, using SHA256.
Package ratchet implements a ratcheting algorithm to generate keypairs for curve25519, using SHA256.
Package ratchetserver manages a ratcheting server.
Package ratchetserver manages a ratcheting server.
Package timesource contains types to test time-dependent code.
Package timesource contains types to test time-dependent code.
Package types defines types shared between server and client.
Package types defines types shared between server and client.

Jump to

Keyboard shortcuts

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