Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2020-10

Encrypt - Decrypt between Delphi-Pas2js and reverse process

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to taqtaq
taqtaq 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:
https://wiki.lazarus.freepascal.org/DCPcrypt

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

https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto

Michael.

Reply by email