func SecretHash(sec *v1.Secret) (string, error) {
	encoded, err := encodeSecret(sec)
	if err != nil {
		return "", err
	}
	h, err := encodeHash(hash(encoded))
	if err != nil {
		return "", err
	}
	return h, nil
}
// SecretHash returns a hash of the Secret.
// The Data, Kind, Name, and Type are taken into account.
SecretHash returns a hash of the Secret.
The Data, Kind, Name, and Type are taken into account.
// SecretHash returns a hash of the Secret . // The Data Kind Name and Type are taken into account .
func SecretHash(sec *v1.Secret) (string, error) {
	encoded, err := encodeSecret(sec)
	if err != nil {
		return "", err
	}
	h, err := encodeHash(hash(encoded))
	if err != nil {
		return "", err
	}
	return h, nil
}
func SecretHash ( sec * v1 . Secret ) ( string , error ) { encoded , err := encodeSecret ( sec ) if err != nil { return " " , err } h , err := encodeHash ( hash ( encoded ) ) if err != nil { return " " , err } return h , nil }
SecretHash returns a hash of the Secret.
SecretHash returns a hash of the Secret .