AES (Advanced Encryption Standard) JavaScript implementation in Counter Mode | Movable Type Scripts
Note that Aes.Ctr.encrypt expects a string: as binary files may include invalid Unicode sequences if treated as strings, I treat the file contents as a byte-stream, converting it to single-byte characters before passing it to Aes.Ctr.encrypt....