Can hashing the same variable multiples times using both md5 and sha1, makes the string more difficult to decrypt and increase security?
Can concatenating the MD5 and SHA1 versions of same string and then finally hashing it once more with either
I have a simple android client which needs to 'talk' to a simple C# HTTP listener. I want to provide a basic level of authentication by passing username/password in POST requests.
MD5 hashing is trivial in C# and provides enough security for my needs but I can't seem to find how to do this at the android end.
EDIT: Just to address the concerns raised about MD5 weakness - the C# server runs on the PCs of the users of my android client. In many cases, they'll be accessing the server using wi-fi on their own LANs but, at their own risk, they may choose to access it from the internet. Also the service on the server needs to use pass-through for the MD5 to a 3rd party application I have no control over.
I am writing in C using OpenSSL library.
How can I calculate hash of a large file using md5?
As I know, I need to load a whole file to RAM as char array and then call the hash function. But what if the file is about 4Gb long? Sounds like a bad idea.
SOLVED: Thanks to askovpen, I found my bug. I've used
while ((bytes = fread (data, 1, 1024, inFile)) != 0) MD5_Update (&mdContext, data, 1024);
while ((bytes = fread (data, 1, 1024, inFile)) != 0) MD5_Update (&mdContext, data, bytes);
I want to get '
Signature of the application (MD5 hash)' from APK or Android Studio.
I wanted to user CamScanner API, to get API Library we need to submit application package name (that I got from
AndroidManifest.xml), but I am not sure from where I can get application signature.
I tried using '
Keytool'. But it showing MD5 has is invalid.
I need to calculate Md5 hash in php for the GetReport file received from Amazon GetReport call and match with Content-md5 hash string received in GetReport response header to check the integrity of the file.The problem is i can't figure out how to calculate md5 hash for the report file received via Amazon GetReport call.
I'm using Guzzle for this GetReport Api Call