Compare commits
2 Commits
42f9c04b24
...
e0df4da27d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0df4da27d | ||
|
|
5391bb8d79 |
@@ -73,10 +73,11 @@ Public Class File
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetChecksum(FilePath As String) As String
|
Public Function GetChecksum(FilePath As String) As String
|
||||||
Using oStream As New BufferedStream(IO.File.OpenRead(FilePath), 1200000)
|
Using oFileStream = IO.File.OpenRead(FilePath)
|
||||||
Dim oSHA As New SHA256Managed()
|
Using oStream As New BufferedStream(oFileStream, 1200000)
|
||||||
Dim oChecksum() As Byte = oSHA.ComputeHash(oStream)
|
Dim oChecksum() As Byte = SHA256.Create.ComputeHash(oStream)
|
||||||
Return BitConverter.ToString(oChecksum).Replace("-", String.Empty)
|
Return BitConverter.ToString(oChecksum).Replace("-", String.Empty)
|
||||||
|
End Using
|
||||||
End Using
|
End Using
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("1.0.3.0")>
|
<Assembly: AssemblyVersion("1.0.4.0")>
|
||||||
<Assembly: AssemblyFileVersion("1.0.3.0")>
|
<Assembly: AssemblyFileVersion("1.0.4.0")>
|
||||||
|
|||||||
Reference in New Issue
Block a user