Niko
Niko

Reputation: 1094

GitHub store files encrypted

due to the fact that all files on GitHub are stored within the U.S. and it is officially known that the government has the right to access and read such data (even from companies in Europe).

I need to know if it is possible to store files encrypted?

like some type of auto encryption and decryption when I push/pull the files.

Upvotes: 1

Views: 3625

Answers (2)

jas_raj
jas_raj

Reputation: 1161

There's a solution git-crypt that I've come across before but never used personally.

However, as others have mentioned there are a number of side-effects that occur when using git encryption.

If you are concerned with data security, it would be better to run your own personal Git server (either on your own hardware or on a cloud provider that hosts outside of the US).

Upvotes: 3

Mark Leighton Fisher
Mark Leighton Fisher

Reputation: 5703

As you can store any type of file in Git, you could store encrypted files in Git. However, to get 'git diff' etc. to work, you will need to decrypt the files on-the-fly (and possibly modify the git sources to account for the necessity of this decryption).

If you feel up to it, adding this encryption/decryption capability might make a nice addition to Git -- I bet there are people out there who would be happy to use your enhancement.

Upvotes: 1

Related Questions