Wrapper over sha256-crypt and sha512-crypt functions originally created by Ulrich Drepper http://www.akkadia.org/drepper/SHA-crypt.txt