JavaScript AES client/server interoperability test

The same AES JavaScript files are used both client-side and server-side.

Client-side they are accessed by

<script src="/js/aes.js"></script>
<script src="/js/aes-ctr.js"></script>

Server-side they are accessed by

const Aes = require('./public/js/aes.js');
Aes.Ctr = require('./public/js/aes-ctr.js');

Encrypt/decrypt


Encrypt on server, decrypt on client

Cipher text (encrypted on server): {{ciphertext}}

Plain text (decrypted on client):

Encrypt on client, decrypt on server

Cipher text (encrypted on client):

Plain text (decrypted on server): {{plaintext}}