tagged [md5]

6 Character Short Hash Algorithm

6 Character Short Hash Algorithm My goal is to generate a short Hash string of 6 characters (possibly containing characters [A-Z][a-z][0-9]) for a string which is 42 case-insensitive alphanumeric char...

23 May at 10:34

Calculate a MD5 hash from a string

Calculate a MD5 hash from a string I use the following C# code to calculate a MD5 hash from a string. It works well and generates a 32-character hex string like this: `900150983cd24fb0d6963f7d28e17f72...

27 Aug at 15:1

Calculate MD5 checksum for a file

Calculate MD5 checksum for a file I'm using [iTextSharp](https://en.wikipedia.org/wiki/IText) to read the text from a PDF file. However, there are times I cannot extract text, because the PDF file is ...

15 Dec at 11:28

Simple (non-secure) hash function for JavaScript?

Simple (non-secure) hash function for JavaScript? > [Generate a Hash from string in Javascript/jQuery](https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript-jquery) C...

23 May at 12:2

SHA-256 or MD5 for file integrity

SHA-256 or MD5 for file integrity I know that SHA-256 is favored over MD5 for security, etc., but, if I am to use a method to only check file integrity (that is, nothing to do with password encryption...

10 May at 01:28

MD5 hashing in Android

MD5 hashing in Android 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 request...

29 Jul at 08:20

What is the difference between using MD5.Create and MD5CryptoServiceProvider?

What is the difference between using MD5.Create and MD5CryptoServiceProvider? In the .NET framework there are a couple of ways to calculate an MD5 hash it seems, however there is something I don't und...

8 Apr at 02:11

Faster MD5 alternative?

Faster MD5 alternative? I'm working on a program that searches entire drives for a given file. At the moment, I calculate an MD5 hash for the known file and then scan all files recursively, looking fo...

23 Sep at 02:29

Why generated MD5 hash in sql server are not equal?

Why generated MD5 hash in sql server are not equal? I have a table in SQL Server 2008 R2 that contain two field (WordHash, Word). This `Hash` field generated in C# and I need regenerate hash code for ...

12 Mar at 13:43

How do I calculate the MD5 checksum of a file in Python?

How do I calculate the MD5 checksum of a file in Python? I have written some code in Python that checks for an MD5 hash in a file and makes sure the hash matches that of the original. Here is what I h...

24 Jan at 00:25

C# MD5 hasher example

C# MD5 hasher example I've retitled this to an example as the code works as expected. I am trying to copy a file, get a MD5 hash, then delete the copy. I am doing this to avoid process locks on the or...

9 May at 04:49

How can you generate the same MD5 Hashcode in C# and Java?

How can you generate the same MD5 Hashcode in C# and Java? I have a function that generates a MD5 hash in C# like this: ``` MD5 md5 = new MD5CryptoServiceProvider(); byte[] result = md5.ComputeHash(da...

27 May at 10:1

How to create a md5 hash of a string in C?

How to create a md5 hash of a string in C? I've found some md5 code that consists of the following prototypes... I've been trying to find out where I have to put the string I want to hash, what functi...

2 Oct at 16:44

UTF-16 Encoding in Java versus C#

UTF-16 Encoding in Java versus C# I am trying to read a String in UTF-16 encoding scheme and perform MD5 hashing on it. But strangely, Java and C# are returning different results when I try to do it. ...

7 Apr at 03:13

Possible to calculate MD5 (or other) hash with buffered reads?

Possible to calculate MD5 (or other) hash with buffered reads? I need to calculate checksums of quite large files (gigabytes). This can be accomplished using the following method: ``` private byte[] c...

23 Jan at 19:51

Is it possible to copy a .NET HashAlgorithm (for repeated incremental hash results)?

Is it possible to copy a .NET HashAlgorithm (for repeated incremental hash results)? I have the following use case: - - - - Incrementally hashing a file isn't the problem, [just call TransformBlock an...

23 May at 11:53

Is it possible to access the compressed data before decompression in HttpClient?

Is it possible to access the compressed data before decompression in HttpClient? I'm working on the [Google Cloud Storage .NET client library](https://googlecloudplatform.github.io/google-cloud-dotnet...