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
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.