BlueOakJS / blueoak-server

express.js-based, swagger-matic, server runtime
MIT License
141 stars 25 forks source link

Use encryption tool to encrypt entire JSON files #54

Open pwwolf opened 8 years ago

pwwolf commented 8 years ago

Per @gconsidine , would like a way to encrypt an entire JSON file rather than having to use the encrypt tool to encrypt each value individually.

On thought is to encode values with a special prefix that can be used to determine which fields to encrypt.

In the example below, the tool would just encrypt field2 but leave field1 untouched.

{
"field1": "blah blah blah",
"field2": "{pre}some plain text="
}

Likewise, the decrypt tool should be able to decrypt an entire file and replace the encrypted values with {pre} values.

seanpk commented 8 years ago

@gconsidine are you still interested in this feature? what is the workflow that you imagine with this feature?

@dbleakley what are your thoughts?