AES in flutter dart and cryptoJS web javascript

Lukket Lagt ut 5 år siden Betales ved levering
Lukket Betales ved levering

I am trying to write two function in flutter and Javascript which I can use throughout my project to encrypt or decrypt data using AES when data is exchanged. For Flutter I am using the pointycastle package based on instructions [login to view URL]

For the Javascript solution I am using CryptoJS

var AESKey = "20190225165436_15230006321670000"

cc = [login to view URL]( ("abcdef ha ha "), AESKey, { mode: [login to view URL], padding: [login to view URL] } ).toString()

[login to view URL](cc, AESKey).toString([login to view URL]); //return abcdef ha ha

Both solutions work well within their own environment, however the flutter or Javascript hashes can't be exchanged, they will not decrypt. My guess is that the character encoding has something to do with it, hence why the base64 sizes differ so much. Does anyone have a idea to get this working together? Thanks!

(Removed by Freelancer.com Admin)

Encryption Flutter JavaScript

Prosjekt-ID: #18817100

Om prosjektet

1 bud Eksternt prosjekt Aktiv 5 år siden

1 frilanser byr i snitt $20 på denne jobben

rammuralidhar

I am planning to implement the encryption in nodejs so that the algorithm matches to the flutter api

$20 USD på 3 dager
(0 Omtaler)
0.0