Code Monkey home page Code Monkey logo

pspk's Introduction

Public storage public key

Simple in-memory public storage public key.

HTTP-base key-value storage.

Model

You should use this model:

{
	"name":"Some Name",
	"key":"base64=="
}

Request

Save public key:

curl -X POST "https://pspk.now.sh" -d '{"name":"Some.Name","key":"E7+TL112lj1GmJRHf9jT5MZJDgYIhUbtBLc4/ZFMZ5c="}'

Read public key:

curl -X POST "https://pspk.now.sh" -d '{"name":"Some.Name"}'

pspk cli usage

Generation key pair.

Will generation private and public keys and publish public pice to pspk.now.sh.

pspk --name <NAME_YOUR_KEY> publish

Encryption some text message.

Will encryption message through your private key and public key name from pspk.now.sh.

pspk --name <NAME_YOUR_KEY> encrypt <PUBLIC_PART> <SOME_MESSAGE_WITH_SPACES>

Decription some text message.

Will decription message through your private key and public key name from pspk.now.sh.

pspk --name <NAME_YOUR_KEY> decrypt <PUBLIC_PART> <SOME_BASE64_WITH_SPACES>

Group encryption exchange

For encryption/decryption need generate shared secret in group. Use this algorithm (CLIQUES) IV.A

  1. Creat group. Create prime base point for group base and publish to pspk.now.sh
pspk --name base group
  1. Decide number of members in group and select order for generation secret. As example Alice, Bob, Carol and Daron want creage shared secret in group base.
pspk --name alice start-group base 
pspk --name bob start-group base alice
pspk --name carol start-group base bob alice

The last members finis generate intermediate secrets.

pspk --name daron finish-group base carol bob alice

Members can start generate shared secret keys via intermediate keys.

pspk --name daron secret-group base carol bob alice
pspk --name carol secret-group base daron bob alice
pspk --name bob secret-group base daron carol alice
pspk --name alice secret-group base daron carol bob
  1. Encryption Encrypt some messages for base group members
pspk --name alice ephemeral-encrypt-group base Super secret message
  1. Decription Decrypt the message from member's base group
pspk --name bob ephemeral-decryp-group base base64

NOTE All intermediate secrets would saved in pspk storage!

pspk config

pspk use $XDG_CONFIG_HOME for saving configuration or default value $HOME/.config/pspk Use config.json file for saving configuration:

{"current_name":"name"}

Also pspk use $XDG_DATA_HOME for saving appication data ro default value $HOME/.local/share/pspk

pspk's People

Contributors

sah4ez avatar

Watchers

 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.