Documentation
¶
Overview ¶
decode decrypts an enc.json file produced by photogen and prints the plaintext JSON.
Usage:
go run cmd/decode/decode.go <path.enc.json> go run cmd/decode/decode.go -passwords <pw-file> <path.enc.json>
If -passwords is not given, the passwords file path is read from the pwFile field embedded in the enc.json by photogen. The correct password is determined automatically from the filename:
- albums.enc.json → site-wide password (site.password)
- index.enc.json → per-album password for the parent directory slug
Click to show internal directories.
Click to hide internal directories.