thank you for this plugin that is really helpfull for my project. However I had to do a few changes to make it work as I needed. It's the first time I use the pull-request feature so excuse me if I didn't do the stuff properly 🙏
I noticed that I couldn't use db.crypto(...) twice after using db.removeCrypto() because the transform-pouch was still set after removing _crypt so I had an encoding problem on the 2nd run. The work around I did check if the crypto was set up once so it won't add again the transform stuff.
Also, we can remove encryption on the database and forgets the password but we couldn't temporarily disable the encryption and re-enable it back in the same db.crypto(...), so I just added it.
I'm creating this pull-request just in case someone need this stuff, the tests ran properly. If you don't need it, feel free to refuse it. Cheers
Hey there,
thank you for this plugin that is really helpfull for my project. However I had to do a few changes to make it work as I needed. It's the first time I use the pull-request feature so excuse me if I didn't do the stuff properly 🙏
I noticed that I couldn't use
db.crypto(...)
twice after usingdb.removeCrypto()
because thetransform-pouch
was still set after removing_crypt
so I had an encoding problem on the 2nd run. The work around I did check if the crypto was set up once so it won't add again the transform stuff.Also, we can remove encryption on the database and forgets the password but we couldn't temporarily disable the encryption and re-enable it back in the same
db.crypto(...)
, so I just added it.I'm creating this pull-request just in case someone need this stuff, the tests ran properly. If you don't need it, feel free to refuse it. Cheers