Giter Site home page Giter Site logo

flycrypt's Introduction

flycrypt

Quickly encrypt strings.

Install

go get github.com/davidlazar/flycrypt

Generate key pair

$ flycrypt 
[k]ey  [e]nc  [d]ec: k

 Public key: r9za5ncqfb5ab6e6py1kpwe7fqrf3rsrx4cc6ax2tvwt2c0ce4bg
Private key: eef3tyy2ggfmhagtg1ewcsakx5qzerng7dwbdjgscrgx20fbn290 (SAVE THIS)

Avoid reusing keys.

Encrypt

$ flycrypt
[k]ey  [e]nc  [d]ec: e
Public key: r9za5ncqfb5ab6e6py1kpwe7fqrf3rsrx4cc6ax2tvwt2c0ce4bg
>> Message (^D to finish):
hello world

-- Ciphertext --
g97qgx8sqng0rv7zm5jq3hjnhj650fq3dn56cmjkjz0spb8c7sv60xycx9a48z0k1g3kbpbd0wnq586n4wy7wtc4n6y8vadb01ff5sejvhvj2

Decrypt

$ flycrypt
[k]ey  [e]nc  [d]ec: d
Private key: eef3tyy2ggfmhagtg1ewcsakx5qzerng7dwbdjgscrgx20fbn290
>> Ciphertext (^D to finish):
g97qgx8sqng0rv7zm5jq3hjnhj650fq3dn56cmjkjz0spb8c7sv60xycx9a48z0k1g3kbpbd0wnq586n4wy7wtc4n6y8vadb01ff5sejvhvj2

-- Message --
hello world

Caveats

flycrypt does not protect against man-in-the-middle attacks.

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.