You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,32 @@ Enable debug mode for detailed logs:
123
123
./vat -d <command>
124
124
```
125
125
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.
0 commit comments