Replaced crypt with sha256 implementation.