Using correct password the SubtleCrypto.decrypt works fine.
My problem is how to differentiate problems or errors if the
wrong password is supplied or the
password is correct but cyphertext is corrupt or
i am trying to decrypt cleartext or an
intentionally malformed cyphertext designed to reveal password ?
I cant find good examples on stackoverflow or google.
Big thanks for any links to relevant examples on dealing with errors ?
Thanks