I am using CryptoJS library for an Angular 2+ project, and I am using gwt-crypto library for a Java project. According to this article, it is possible to make an easy implementation of Triple DES, so I did it like this:
As an interest fact, both apps can encrypt and decrypt correctly, but they ouput different encryptions, and I do not know how to solve this, in order to communicate between them. Somebody could help me?, maybe I need procedures that I don't know about, or I'm doing the implementation wrong.
Hi,
I am using CryptoJS library for an Angular 2+ project, and I am using gwt-crypto library for a Java project. According to this article, it is possible to make an easy implementation of Triple DES, so I did it like this:
As I want to communicate with my Angular app, I tried to do the same exercise using CryptoJS, like:
But when I test my two apps, they output different encryption results. For example, if I test with "Example message" as input, I get:
CryptoJS: U2FsdGVkX1/l7hDE9US+MQFcmBw3u2HWN45H3c8shsk=
gwt-crypto: ac5f6601d994bb6a9b7ea304a1523c99
As an interest fact, both apps can encrypt and decrypt correctly, but they ouput different encryptions, and I do not know how to solve this, in order to communicate between them. Somebody could help me?, maybe I need procedures that I don't know about, or I'm doing the implementation wrong.
Thank you.