Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decryption of data while retrieval not happening #14

Open
rajat2341 opened this issue Oct 17, 2023 · 0 comments
Open

Decryption of data while retrieval not happening #14

rajat2341 opened this issue Oct 17, 2023 · 0 comments

Comments

@rajat2341
Copy link

rajat2341 commented Oct 17, 2023

I am using Jackson Json Crypto module v 1.1.0 for encryption as it is compatible with JDK 8. Encryption is working fine and data is getting saved in encrypted form but while deserializing, data is not getting back converted to actual data. I believe the @Encrypt annotation which is used and defined on the field is not getting triggered before the object mapper does deserializing. I have downloaded the decompiled library code as well and tried debugging, where i found deserializing module constructors are getting called initially but later the @OverRide deserialize function is not getting triggered.

Encrypted O/P
"order_id": { "salt": "Bf53VhtWMF95Cp7wLb8EJ9tRfIc=", "iv": "X83bkmfrvHk4SGCTJ+zx/g==", "value": "L8VEVKkEp0j7KG0cG2IFjHdNmMKcIxnLIb0+fiNqnDr2AXRrFgwJaaR6E8f5n7DI" }

Post-decryption it should be
"order_id": "abcd_!234"

But the O/P is coming the encrypted value as it is
"order_id": { "salt": "Bf53VhtWMF95Cp7wLb8EJ9tRfIc=", "iv": "X83bkmfrvHk4SGCTJ+zx/g==", "value": "L8VEVKkEp0j7KG0cG2IFjHdNmMKcIxnLIb0+fiNqnDr2AXRrFgwJaaR6E8f5n7DI" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant