-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multiple password "contexts" in one repo
Context names let you encrypt some files with different passwords for a different audience, such as super-users. The 'default' context applies unless you set a context name. Add a context by reinitialising transcrypt with a context name then add a pattern with crypt-<CONTEXT*NAME> attributes to *.gitattributes*. For example, to encrypt a file \_top-secret* in a "super" context: # Initialise a new "super" context, and set a different password $ transcrypt --context=super # Add a pattern to .gitattributes with "crypt-super" values $ echo >> .gitattributes \\ 'top-secret filter=crypt-super diff=crypt-super merge=crypt-super' # Add and commit your top-secret and .gitattribute files $ git add .gitattributes top-secret $ git commit -m "Add top secret file for super-users only" # List all contexts $ transcrypt --list-contexts # Display the cipher and password for the "super" context $ transcrypt --context=super --display
- Loading branch information
Showing
9 changed files
with
830 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.