[Pas2js] Encrypt - Decrypt between Delphi-Pas2js and reverse process

Michael Van Canneyt michael at freepascal.org
Thu Oct 22 08:48:16 CEST 2020

On Wed, 21 Oct 2020, taqtaq via Pas2js wrote:

> How can I do to encrypt in delphi / lazarus from server side and then decrypt
> with javascript in the client side? Of course the reverse process too
> Is there a way to do that? I think yes, but I don't know how.

Server-side there are several possibilities, 
I think DCPCrypt may be the easiest:

In the browser, You should use the TJSCrypto class. It is documented in



More information about the Pas2js mailing list