Coder Social home page Coder Social logo

git-crypt-template's Introduction

Git crypt template


 @@@@@@@@  @@@  @@@@@@@      @@@@@@@  @@@@@@@   @@@ @@@  @@@@@@@   @@@@@@@     @@@@@@@  @@@@@@@@  @@@@@@@@@@   @@@@@@@   @@@        @@@@@@   @@@@@@@  @@@@@@@@  
@@@@@@@@@  @@@  @@@@@@@     @@@@@@@@  @@@@@@@@  @@@ @@@  @@@@@@@@  @@@@@@@     @@@@@@@  @@@@@@@@  @@@@@@@@@@@  @@@@@@@@  @@@       @@@@@@@@  @@@@@@@  @@@@@@@@  
!@@        @@!    @@!       !@@       @@!  @@@  @@! !@@  @@!  @@@    @@!         @@!    @@!       @@! @@! @@!  @@!  @@@  @@!       @@!  @@@    @@!    @@!       
!@!        !@!    !@!       !@!       !@!  @!@  !@! @!!  !@!  @!@    !@!         !@!    !@!       !@! !@! !@!  !@!  @!@  !@!       !@!  @!@    !@!    !@!       
!@! @!@!@  !!@    @!!       !@!       @!@!!@!    !@!@!   @!@@!@!     @!!         @!!    @!!!:!    @!! !!@ @!@  @!@@!@!   @!!       @!@!@!@!    @!!    @!!!:!    
!!! !!@!!  !!!    !!!       !!!       !!@!@!      @!!!   !!@!!!      !!!         !!!    !!!!!:    !@!   ! !@!  !!@!!!    !!!       !!!@!!!!    !!!    !!!!!:    
:!!   !!:  !!:    !!:       :!!       !!: :!!     !!:    !!:         !!:         !!:    !!:       !!:     !!:  !!:       !!:       !!:  !!!    !!:    !!:       
:!:   !::  :!:    :!:       :!:       :!:  !:!    :!:    :!:         :!:         :!:    :!:       :!:     :!:  :!:        :!:      :!:  !:!    :!:    :!:       
 ::: ::::   ::     ::        ::: :::  ::   :::     ::     ::          ::          ::     :: ::::  :::     ::    ::        :: ::::  ::   :::     ::     :: ::::  
 :: :: :   :       :         :: :: :   :   : :     :      :           :           :     : :: ::    :      :     :        : :: : :   :   : :     :     : :: ::   
                                                                                                                                                                                                                                                                                        

Motivation

As a lot of projects sometimes contains sensitive tokens, password etc. - we can't always rely on the developers to keep things in order.

Therefore, this is a easy enough to reference template to get the broad idea of how and when to use git-crypt.

Preparation

  1. Install GPG and generate a key locally
brew install gpg pinentry-mac
  1. Just to be on the safe side, let's check if you already have any GPG key.
gpg --list-keys

If you do have something here, jump to step 4.

  1. Time to generate
gpg --gen-key 

And now when you'll run gpg --list-keys you will get output something like this

/Users/Gilad/.gnupg/pubring.kbx
-------------------------------
pub   ed25519 2021-07-28 [SC] [expires: 2023-07-28]
      F69D75E3E3AC97A9D5A52C4DCCBB5D871565FE10
uid           [ultimate] Gilad Maoz <[email protected]>
sub   cv25519 2021-07-28 [E] [expires: 2023-07-28]

You need to get the public key which is a hexadecimal string. In this case it is F69D75E3E3AC97A9D5A52C4DCCBB5D871565FE10

  1. Add a key to a project
git-crypt add-gpg-user <same-hexa-from-before>
  1. Export your public key for later usage
gpg --armor --export --output ~/mykey.gpg

In case of a shared public key, you should generate a key locally, and export the private Or instead of doing all of that - just execute ./install.sh.

! We should sign eachother keys to make them stronger!

git-crypt-template's People

Contributors

evilurge avatar

Watchers

 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.