UtilHashingComputeHashOfFileT(String) Method
Computes a hash for the specified file using the given hash algorithm.
Namespace: DevCase.Core.Security.Cryptography.HashingAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string ComputeHashOfFile<T>(
string filepath
)
where T : HashAlgorithm
Public Shared Function ComputeHashOfFile(Of T As HashAlgorithm) (
filepath As String
) As String
Dim filepath As String
Dim returnValue As String
returnValue = UtilHashing.ComputeHashOfFile(filepath)
public:
generic<typename T>
where T : HashAlgorithm
static String^ ComputeHashOfFile(
String^ filepath
)
static member ComputeHashOfFile :
filepath : string -> string when 'T : HashAlgorithm
No code example is currently available or this language may not be supported.
- filepath String
-
The filepath.
- T
-
The HashAlgorithm provider.
String
An Hexadecimal representation of the resulting hash value.
This is a code example.
No code example is currently available or this language may not be supported.
Dim md5 As String = ComputeHashOfFile(Of MD5CryptoServiceProvider)("C:\File.ext")
Dim sha1 As String = ComputeHashOfFile(Of SHA1CryptoServiceProvider)("C:\File.ext")
Dim sha256 As String = ComputeHashOfFile(Of SHA256CryptoServiceProvider)("C:\File.ext")
Dim sha384 As String = ComputeHashOfFile(Of SHA384CryptoServiceProvider)("C:\File.ext")
Dim sha512 As String = ComputeHashOfFile(Of SHA512CryptoServiceProvider)("C:\File.ext")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.