Hash.CreateSHA1(Byte[]) Method
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.
public:
static System::Security::Policy::Hash ^ CreateSHA1(cli::array <System::Byte> ^ sha1);
public static System.Security.Policy.Hash CreateSHA1 (byte[] sha1);
static member CreateSHA1 : byte[] -> System.Security.Policy.Hash
Public Shared Function CreateSHA1 (sha1 As Byte()) As Hash
Parameters
Returns
An object that contains the hash value provided by the sha1
parameter.
Exceptions
The sha1
parameter is null
.
Remarks
The returned Hash object contains only the SHA1 property.
Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET