Moved the SHA-256 hash generation to a more appropriate class.