crypt(3) Implementation for JavaScript