Add pure-Java basic crypt support (ported from JRuby codebase with permission to move here)