Add native implementation of crypt as well as emscripten one