#1 2011-03-14 11:19:30

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

AES and Gibberish

Are the AES routines in SynCrypto.pas compatible with the Gibberish javascript AES library?

https://github.com/mdp/gibberish-aes/bl … ish-aes.js

I've tried to un-encrypt some text encrypted by the Gibberish library but haven't had much success so far.

Offline

#2 2011-03-14 15:29:21

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: AES and Gibberish

It sounds like the salt used here is not compatible the the salt from SynCrypto.pas.

But the core AES encryption is exactly the same - because both are compliant with the standards.

Take a look in the salt generation area, and I'm sure you'll find out how to make the same process in Delphi code, using our AES core.

Offline

#3 2011-03-15 00:00:09

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

Re: AES and Gibberish

Thanks for the suggestion. I think I need to spend some more time getting my head round this.

Offline

#4 2011-03-17 09:43:31

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

Re: AES and Gibberish

In the Gibberish implementation the salt is twice the length and it doesn't put checksums in the header. It doesn't look too simple to make them compatible and at any rate I've since realised SHA256 is more appropriate for what I'm doing, so I've left this for now.

Offline

Board footer

Powered by FluxBB