Replace sha256 code with QCryptographicHash

SHA-256 support was added to QCryptographicHash in Qt 5.0.