Summary of What Needs to be Done:
Add a unit test that verifies decryptToken returns null when given an invalid IV that does not match the required 24-character hex format.
Changes that Need to be Made:
- Add test case in test/crypto.test.js that calls decryptToken with valid encrypted data but invalid IV (e.g., wrong length or non-hex characters) and asserts null is returned
Impact that it would Provide:
- Improves test coverage for input validation in the crypto module
Summary of What Needs to be Done:
Add a unit test that verifies decryptToken returns null when given an invalid IV that does not match the required 24-character hex format.
Changes that Need to be Made:
Impact that it would Provide: