1.5 KiB
Enabling Blackbox on a Repo
Overview:
- Run the initialization command
- Add at least one admin.
- Add files. (don't add files before the admins)
The long version:
-
If you don't have a GPG key, set it up using instructions such as: Set up GPG key.
Now you are ready to go. -
cdinto a Git, Mercurial, Subversion or Perforce repository and runblackbox init. -
Add yourself with
blackbox admin add YOUR@EMAIL -
Commit the files as directed.
That's it!
At this point you should encrypt a file and make sure you can decrypt it. This verifies that everything is working as expected.
-
Pick a file to be encrypted. Since this is a test, you might want to create a test file. Call it
secret.txtand edit the file so that it includes your mother's maiden name. Just kidding! Store this sentence:This is my test file. -
Run
blackbox file add secret.txt -
Decode the encrypted version:
blackbox cat secret.txt
The "cat" subcommand only accesses the encrypted (.gpg) file and is
a good way to see that the file was encrypted properly. You should
see This is my test file.
4 Verify that editing the file works.
To view and/or edit a file, run blackbox edit --shred secret.txt
Now encrypt it and shred the original:
blackbox encrypt --shred secret.txt
Now make sure you can decrypt the new file:
blackbox cat secret.txt
You should see the changed text.
Now commit and push secret.txt.gpg and you are done!