I am using the following to generate an MD5 hash on a file downloaded from Google drive:
Sub getLocalChecksum(sPath As String, fileNameArg As String) As String
Dim iStream As InputStream = File.OpenInput(sPath, fileNameArg)
Dim buffer(File.Size(sPath,fileNameArg)) As Byte
Why am I getting different MD5 checksums on a local data file vs. the same file uploaded to Google Drive?
I'm using the Google Drive API to upload backups of my app's data files. I only want to upload a file if it's actually different from the existing Google version, so...
Was recently requested to look at this by a friend, for encryption
3. Add this...
I need to convert an MD5, I use the following code:
Dim md As MessageDigest
Dim ByteCon As ByteConverter
Dim passwordhash() As Byte
passwordhash = md.GetMessageDigest(p.GetBytes("UTF8"),"MD5")
dim md5string as String
md5string = ByteCon.HexFromBytes(passwordhash)