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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.