Skip to content

Instantly share code, notes, and snippets.

@eyecatchup
Last active June 20, 2018 13:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eyecatchup/7bc659a912e2272cceda to your computer and use it in GitHub Desktop.
Save eyecatchup/7bc659a912e2272cceda to your computer and use it in GitHub Desktop.
Some advanced JavaScript Hashing/Inflate/Deflate/Encryption/Decryption/Encoding/Decoding implementations

Advanced JavaScript Implementations

Some advanced (and mainly "math"-related) JS implementations of commonly used algorithms by Masanao Izumo, <iz@onicos.co.jp>.

Disclaimer: ALL text below was translated, from Japanese, with Google Translator.
Sounds (almost) reasonable to me. But no warranty, though! ;-)

--

printf() + sprintf() in JavaScript

--

UTF-8 <=> UTF-16 Conversion in JavaScript

--

zlib JavaScript implementation

--

JavaScript Decompression routine, which is commonly used in Gzip (GPL)

--

JavaScript Compression routine, which is commonly used in Gzip (GPL)

--

MD5 JavaScript Implementation

--

base64 Encoding/Decoding routines for JavaScript

--

ZIP Inflate/Deflate routines (Compression/Decompression) for JavaScript

--

DES Encryption/Decryption JavaScript Implementation

--

Arbitrary size integer math package for JavaScript

(integer multiple length calculation)

--

n calculation of the factorial

--

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment