Hash.SHA1 Proprietà

Definizione

Ottiene il valore hash SHA1 per l'assembly.

public:
 property cli::array <System::Byte> ^ SHA1 { cli::array <System::Byte> ^ get(); };
public byte[] SHA1 { get; }
member this.SHA1 : byte[]
Public ReadOnly Property SHA1 As Byte()

Valore della proprietà

Byte[]

Matrice di byte che rappresenta il valore hash SHA1 per l'assembly.

Esempio

Nell'esempio seguente viene calcolato l'hash SHA1 per myAssembly e archiviato in hashcode.

Hash^ hash = gcnew Hash( myAssembly );
array<Byte>^ hashcode = hash->SHA1;
Hash hash = new Hash ( myAssembly );
Byte[] hashcode = hash.SHA1;
Dim hash As New Hash(myAssembly)
Dim hashcode As Byte() = hash.SHA1

Commenti

L'assembly specificato nel costruttore fornisce i byte per il calcolo hash.

A causa di problemi di conflitto con SHA1, Microsoft consiglia SHA256.

Si applica a