Giter Club home page Giter Club logo

cryptography's Introduction

Cryptography for Code Rebels

A collection of cryptographic protocols, examples, and best practices. Use these methods to help secure your work, writing, code, ideas, and collaborations from those who are not invited to the party.

author: @gunnarpope

Each folder contains cryptographic methods for each language or protocol listed.

Diffie-Hellman Key Exchange

Achieve perfect forward secrecy using the ephemeral Diffie-Hellman Key exchange. $ node javascript/DiffieHellman.js

SSH Key Generation

Look at folder ssh/ for instructions on how to setup SSH keys with a remote server to secure data in transit. Here's a quick example of how to generate a key pair to establish secure connections using SSH protocol.

~/repos/cryptography $ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key: ~/.ssh/ex_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in ~/.ssh/ex_rsa.
Your public key has been saved in ~/.ssh/ex_rsa.pub.
The key fingerprint is:
SHA256:v3k+IdKFSNoAozOGd3YbHsGZ8QWsH349EBngJYE0Cts
The key's randomart image is:
+---[RSA 2048]----+
|  . o+=*=++o     |
| . = o*=o+o      |
|. B E +*o. o     |
| o = oo++ o .    |
|      ooSo +     |
|        +.+ +    |
|         o.. o   |
|           oo    |
|          oo..   |
+----[SHA256]-----+

Now, upload the key to your remote server at user 'demo' at IP 168.0.0.1

$ ssh-copy-id [email protected]

cryptography's People

Contributors

gunnarpope avatar

Watchers

James Cloos 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.