mdenc 0.1.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  **Encrypt your Markdown. Keep your diffs.**
4
4
 
5
+ [**Live Demo**](https://yogh-io.github.io/mdenc/) | [npm](https://www.npmjs.com/package/mdenc) | [Specification](SPECIFICATION.md) | [Security](SECURITY.md)
6
+
5
7
  mdenc lets you store encrypted Markdown in git without losing the ability to see *what changed*. Edit one paragraph, and only that paragraph changes in the encrypted output. Your `git log` stays useful. Your pull request reviews stay sane.
6
8
 
7
9
  ## What it looks like
@@ -92,29 +94,26 @@ Password is read from `MDENC_PASSWORD` env var or prompted interactively (no ech
92
94
 
93
95
  ## Git Integration
94
96
 
95
- mdenc can automatically encrypt and decrypt files as part of your git workflow.
97
+ mdenc uses git's native **smudge/clean filter** to transparently encrypt and decrypt `.md` files. You edit plaintext locally; git stores ciphertext in the repository.
96
98
 
97
99
  ```bash
98
- # Set up git hooks (pre-commit, post-checkout, post-merge, post-rewrite)
100
+ # Set up git smudge/clean filter and textconv diff
99
101
  mdenc init
100
102
 
101
103
  # Generate a random password into .mdenc-password
102
- mdenc genpass
104
+ mdenc genpass [--force]
103
105
 
104
- # Mark a directory -- .md files inside will be encrypted on commit
106
+ # Mark a directory -- .md files inside will be filtered
105
107
  mdenc mark docs/private
106
108
 
107
- # See which files need encryption/decryption
109
+ # See which files are configured for encryption
108
110
  mdenc status
109
111
 
110
- # Watch for changes and encrypt on save
111
- mdenc watch
112
-
113
- # Remove mdenc hooks from the repository
114
- mdenc remove-hooks
112
+ # Remove git filter configuration
113
+ mdenc remove-filter
115
114
  ```
116
115
 
117
- After `mdenc init` and `mdenc mark`, the workflow is automatic: edit `.md` files normally, and the pre-commit hook encrypts them to `.mdenc` before each commit. Post-checkout and post-merge hooks decrypt them back after switching branches or pulling.
116
+ After `mdenc init` and `mdenc mark`, the workflow is transparent: the **clean filter** encrypts `.md` files when they're staged (`git add`), and the **smudge filter** decrypts them on checkout. You always see plaintext in your working directory. The custom diff driver shows plaintext diffs of encrypted content.
118
117
 
119
118
  ## Library
120
119