I don't know why you are base64 encoding things before sending them to the DB. Just use a binary blob.
scrypt is a hashing algorithm, not an encryption algorithm. So that doesn't seem like what you want.
LZ-String is a compression algorithm, that's trivially reversible.
The problem you'll run into is that the "right" encryption algorithm is constantly changing. Probably the best thing to do would be to not do it yourself, instead, rely on encryption capabilities of your DB if provided. If you opt to doing your own encryption, then be prepared to constantly maintain and update it. Pushing that responsibility onto the DB makes that burden a simple "make sure your DB is up to date" Which you should be doing anyways.
I don't know why you are base64 encoding things before sending them to the DB. Just use a binary blob.
scrypt is a hashing algorithm, not an encryption algorithm. So that doesn't seem like what you want.
LZ-String is a compression algorithm, that's trivially reversible.
The problem you'll run into is that the "right" encryption algorithm is constantly changing. Probably the best thing to do would be to not do it yourself, instead, rely on encryption capabilities of your DB if provided. If you opt to doing your own encryption, then be prepared to constantly maintain and update it. Pushing that responsibility onto the DB makes that burden a simple "make sure your DB is up to date" Which you should be doing anyways.