Skip to content

Commit 6554f21

Browse files
p-b--aider-chat-bot
andcommitted
docs: add instructions for working with encrypted assessment files
Co-authored-by: aider (bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0) <aider@aider.chat>
1 parent 9ec8773 commit 6554f21

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,32 @@ Enable debug mode for detailed logs:
123123
./vat -d <command>
124124
```
125125

126+
## Working with Encrypted Assessment Files
127+
128+
> **⚠️ Warning:** Manually editing assessment files can risk corrupting data structures. Proceed with caution and ensure you understand the data format before making changes.
129+
130+
### Extracting JSON from Encrypted Files
131+
132+
To extract the JSON data from an encrypted assessment file in one command:
133+
134+
```bash
135+
cat encrypted_file | age --decrypt --passphrase | gunzip > assessment.json
136+
```
137+
138+
This command will prompt for the passphrase and then extract the decrypted JSON data.
139+
140+
### Repackaging JSON into Encrypted Format
141+
142+
To repackage a modified JSON file back into an encrypted archive:
143+
144+
```bash
145+
cat modified_assessment.json | gzip | age --encrypt --passphrase > archive.age
146+
```
147+
148+
This command will prompt for a passphrase and create an encrypted file that can be used with the restore command.
149+
150+
Note: You'll need the [age encryption tool](https://github.com/FiloSottile/age) installed to perform these operations.
151+
126152
## Development
127153

128154
### Build the Application

0 commit comments

Comments
 (0)