sops icon indicating copy to clipboard operation
sops copied to clipboard

sops encrypt decrypt changes json file

Open diepes opened this issue 3 years ago • 1 comments

using sops to encrypt and decrypt changes the following json { "test": "command < " }

to

{ "test": "command \u003c " }

I understand that \u003c is the unicode for < , but expect sops not to change the output.

diepes avatar Aug 12 '22 05:08 diepes

sops produces semantically equivalent files. It does not produce exact copies of the input.

If you load both JSON files with a JSON parser, the resuld should be exactly the same.

If you require the format of the JSON file to be unchanged, you should encrypt the JSON as a binary blob, or use another encryption program such as age or gpg.

felixfontein avatar Aug 27 '22 13:08 felixfontein