Hash.SHA1 Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the SHA1 hash value for the 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()
Property Value
Byte[]
A byte array that represents the SHA1 hash value for the assembly.
Examples
The following example computes the SHA1 hash for myAssembly
and stores it 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
Remarks
The assembly specified in the constructor provides the bytes for the hash computation.
Due to collision problems with SHA1, Microsoft recommends SHA256.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET