git-crypt | Transparent file encryption in git | Cryptography library

 by   AGWA C++ Version: 0.7.0 License: GPL-3.0

kandi X-RAY | git-crypt Summary

kandi X-RAY | git-crypt Summary

git-crypt is a C++ library typically used in Security, Cryptography applications. git-crypt has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has medium support. You can download it from GitHub.

git-crypt enables transparent encryption and decryption of files in a git repository. Files which you choose to protect are encrypted when committed, and decrypted when checked out. git-crypt lets you freely share a repository containing a mix of public and private content. git-crypt gracefully degrades, so developers without the secret key can still clone and commit to a repository with encrypted files. This lets you store your secret material (such as keys or passwords) in the same repository as your code, without requiring you to lock down your entire repository. git-crypt was written by [Andrew Ayer] ( For more information, see

            kandi-support Support

              git-crypt has a medium active ecosystem.
              It has 7319 star(s) with 431 fork(s). There are 89 watchers for this library.
              It had no major release in the last 12 months.
              There are 99 open issues and 101 have been closed. On average issues are closed in 204 days. There are 26 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of git-crypt is 0.7.0

            kandi-Quality Quality

              git-crypt has 0 bugs and 0 code smells.

            kandi-Security Security

              git-crypt has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              git-crypt code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              git-crypt is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              git-crypt releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              It has 379 lines of code, 0 functions and 1 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of git-crypt
            Get all kandi verified functions for this library.

            git-crypt Key Features

            No Key Features are available at this moment for git-crypt.

            git-crypt Examples and Code Snippets

            No Code Snippets are available at this moment for git-crypt.

            Community Discussions


            Storing API_KEY in Heroku
            Asked 2022-Mar-23 at 20:50

            I have a Python code that I want to run 24/7. After doing a bit research, I decided to deploy my code on Heroku. In order for my code to run, it needs to get an API key; however, I want to store the API key in a secure place.

            So I stored the key in Heroku's config vars using the CLI's command config:set. However, I am not sure how to pull the key from config vars in order to store it in a variable in my code.

            I am very new to all of this so I would really appreciate your help. I am open to storing my API key as well using different methods, whatever gets the job done in a beginner-friendly manner (git-crypt? etc.)




            Answered 2022-Mar-23 at 20:50

            The configvar is an environment variable available to the application at runtime:



            Descrypt only some files with git-crypt unlock and not the entire repo
            Asked 2021-Oct-16 at 09:56

            I am performing a sparse checkout on a git dir that uses git-crypt.

            A normal git clone followed by a git-crypt unlock works.

            Since I am running a sparse checkout, I would also like to perform a partial git-crypt unlock

            After running



            Answered 2021-Oct-16 at 09:56

            There is no direct solution to this.
            Something that can be done about it is using multiple keys from git crypt, a key for each sparse checkout and another key for the overall encryption.
            Alternative solution and source of my information:
            The best solution is using multiple keys at the moment.



            How to release:perform with git-crypted files
            Asked 2021-Apr-01 at 12:21

            I used git-crypt ( to encrypt a property file containing sensitive data (passwords etc.) in my Java Maven project.

            Preparing of the release run without problems. But the execution of "mvn release:perform" failed because this operation do an automated:

            • checkout release tag from SCM
            • build and deploy released code

            The problem is, that my property file is checked out encrypted and so the execution of some integration test failed.

            It should be possible somehow to decrypt my file automatically during the release:perform process.

            I need a solution kind of this:



            Answered 2021-Apr-01 at 12:21

            I found a working solution now:



            git-crypt update file thats been encrypted
            Asked 2020-Jul-23 at 00:55

            Ive a .env file, and a number of others encrypted with git-crypt.

            git-crypt lock asks to clean working directory. Appending --force removes all changes to .env and just gives me the original file

            I'm adding new values into the .env file and want to re-encrypt the file anew, then check it in to git.



            Answered 2020-Jul-23 at 00:55

            Best answer I found was running git-crypt lock --force; git-crypt unlock;, pasting in the .env changes, then in the git cli running a commit. It converts to binary in a webhook that looked to not work correctly when interfacing with a git ui like gitkraken


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install git-crypt

            You can download it from GitHub.


            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone AGWA/git-crypt

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Cryptography Libraries


            by dogecoin


            by google


            by brix


            by Ciphey


            by jedisct1

            Try Top Libraries by AGWA


            by AGWAC++


            by AGWAGo


            by AGWAGo


            by AGWAC++