encryption for cross platforms C# and Java

Rbandar
Newbie

encryption for cross platforms C# and Java

I encrypted a message in C# using  ECDH algorithm and A256GCM encryption method, But when I try to decrypt in Java getting below error 

 

"AES/GCM/NoPadding decryption failed: Tag mismatch!"

 

Do you have any sample code to encrypt and decrypt for cross platforms (c# and java)

1 REPLY 1
vkamboj
Visa Dev Moderator

Re: encryption for cross platforms C# and Java

Hello @Rbandar,

 

Please use Message Level Encryption sample code by logging into your project dashboard. 

 

1. Click on "Assets" located on the left navigation tab

2. Scroll down to "General Assets" section

3. Download "Message Level Encryption Sample Code"

 

Thank you, 

Vaibhav

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.