Compare commits
2 Commits
49ec173c36
...
bd6fa93a45
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd6fa93a45 | ||
|
|
828063447e |
@@ -73,12 +73,19 @@ Public Class File
|
||||
End Function
|
||||
|
||||
Public Function GetChecksum(FilePath As String) As String
|
||||
Using oFileStream = IO.File.OpenRead(FilePath)
|
||||
Using oStream As New BufferedStream(oFileStream, 1200000)
|
||||
Dim oChecksum() As Byte = SHA256.Create.ComputeHash(oStream)
|
||||
Return BitConverter.ToString(oChecksum).Replace("-", String.Empty)
|
||||
Try
|
||||
Using oFileStream = IO.File.OpenRead(FilePath)
|
||||
Using oStream As New BufferedStream(oFileStream, 1200000)
|
||||
Dim oChecksum() As Byte = SHA256.Create.ComputeHash(oStream)
|
||||
Return BitConverter.
|
||||
ToString(oChecksum).
|
||||
Replace("-", String.Empty)
|
||||
End Using
|
||||
End Using
|
||||
End Using
|
||||
Catch ex As Exception
|
||||
_Logger.Error(ex)
|
||||
Return Nothing
|
||||
End Try
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
|
||||
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
||||
' übernehmen, indem Sie "*" eingeben:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("1.0.4.0")>
|
||||
<Assembly: AssemblyFileVersion("1.0.4.0")>
|
||||
<Assembly: AssemblyVersion("1.0.5.0")>
|
||||
<Assembly: AssemblyFileVersion("1.0.5.0")>
|
||||
|
||||
Reference in New Issue
Block a user