app returns an error if it tries to decrypt itemData from an empty database so i fixed it with itemData.item.message ? Decrypt(itemData.item.message) : console.log("no messages in database") to not decrypt itemData if it is null please tell me if there's a better way fix to the error, ty!
Whole Playlist: th-cam.com/play/PLioNPd1bQsQ3Cde5Hu40wMNLMEkCUNgG_.html
app returns an error if it tries to decrypt itemData from an empty database so i fixed it with
itemData.item.message ? Decrypt(itemData.item.message) : console.log("no messages in database")
to not decrypt itemData if it is null
please tell me if there's a better way fix to the error, ty!
Perfect
is this key is mandotary to encryt or decrypt the data?
Yes
is key is required to encryt or decyprt? or its optional
Yes… just like a password