Hey! I've been using ejson recently and think it's great. For my use case, the ability to encrypt/decrypt a single file with different key pairs was needed.
This PR adds the ability for ejson to decrypt/encrypt json arrays.
I also added a flag -m to decrypt. When using this flag, ejson will immediately return the first decryptable object it finds. Meaning, if I try to decrypt an array with many different public keys, but my machine only knows one of them, I will only receive the object which I could decrypt.
Hey! I've been using ejson recently and think it's great. For my use case, the ability to encrypt/decrypt a single file with different key pairs was needed.
This PR adds the ability for ejson to decrypt/encrypt json arrays.
I also added a flag -m to decrypt. When using this flag, ejson will immediately return the first decryptable object it finds. Meaning, if I try to decrypt an array with many different public keys, but my machine only knows one of them, I will only receive the object which I could decrypt.
Usage examples (I've added these to the README):
Notes: