apstanisic / zmaj

Zmaj is a headless CMS for managing database
https://zmaj.vercel.app
MIT License
5 stars 0 forks source link

Switch from node:crypto to cryptr #50

Closed apstanisic closed 1 year ago

apstanisic commented 1 year ago

This is a complex topic, even just choosing proper encryption method. This would offload this to cryptr, which is a popular package. I contributed types so it's now type safe.

Keep current tests, just remove hard-coded values. That way if cryptr changes it's method in breaking change, this will catch it.