remove dependency on crypt to make it portable to windows