Code Monkey home page Code Monkey logo

crypta2's Introduction

Crypta2

Crypta2 uses anonymous encryption and decryption from golang.org/x/crypto/nacl/box library to securely transfer your data.

Getting Started

Installation

Linux

  1. Download

    curl -LO https://github.com/Mirage20/crypta2/releases/latest/download/crypta2-linux-x64.tar.gz
  2. Extract

    tar -xzvf crypta2-linux-x64.tar.gz
  3. Install

     sudo mv ./crypta2 /usr/local/bin/crypta2

MacOS

  1. Download

    curl -LO https://github.com/Mirage20/crypta2/releases/latest/download/crypta2-darwin-x64.tar.gz
  2. Extract

    tar -xzvf crypta2-darwin-x64.tar.gz
  3. Install

     sudo mv ./crypta2 /usr/local/bin/crypta2

Usage

  1. Generate a key pair my-key.pub and my-key.pvt

    # The following command will generate a key pair and write it to current directory
    crypta2 genkey my-key
  2. Encrypt using public key

    # Encrypt message.txt using public key and save it as base64 encoded payload.txt
    crypta2 encrypt -f message.txt -p my-key.pub > payload.txt
    
    # Read data from stdin pipe and encrypt
    echo "Hello World" | crypta2 encrypt -p my-key.pub > payload.txt
    
    # Encrypt data from stdin and output to stdout (press Ctrl+D after entering the secret)
    crypta2 encrypt -p my-key.pub
  3. Decrypt using private and public key

    # Decrypt base64 encoded payload.txt using private key and save it as message.txt
    crypta2 decrypt -f payload.txt -k my-key.pvt -p my-key.pub > message.txt
    
    # Decrypt data from stdin and output to stdout (press Ctrl+D after entering the input)
    crypta2 decrypt -k my-key.pvt -p my-key.pub
  4. Run crypta2 --help for more information

    Usage:
      crypta2 [command]
    
    Available Commands:
      decrypt     Decrypt input with the given private and public keys
      encrypt     Encrypt input with the given public key
      genkey      Generates a key pair
      help        Help about any command
    
    Flags:
      -h, --help      help for crypta2
      -v, --version   version for crypta2
    
    Use "crypta2 [command] --help" for more information about a command.
        
    

crypta2's People

Contributors

mirage20 avatar

Stargazers

 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.