Questions tagged [md5]

Cryptographic hash function with a 128-bit (16-byte) hash value. MD5 is no longer considered a secure hash and should not be used to protect sensitive information like passwords

MD5 is incredibly weak on modern computers, and can be easily broken. If you are looking to securely hash values, consider something stronger like bcrypt

MD5 (Message-Digest algorithm 5) is a widely used cryptographic hash function with a 128-bit (16-byte) hash value. Specified in RFC 1321, MD5 has been employed in a wide variety of security applications, and is also commonly used to check the integrity of files. However, it has been shown that MD5 is not collision resistant; as such, MD5 is not suitable for applications like SSL certificates or digital signatures that rely on this property. An MD5 hash is typically expressed as a 32-digit hexadecimal number.

References:

4054 questions
1
vote
0 answers

Why does a hash of string produce different results in C# and SQL Server?

I have this function in my C# code: public static string ComputeHash(string input) { string hash = string.Empty; using (System.Security.Cryptography.MD5 md5Hash = System.Security.Cryptography.MD5.Create()) try { …
Ran Marciano
  • 1,431
  • 5
  • 13
  • 30
1
vote
1 answer

How can I make 2 strings with the same word(s)/meaning, but with Unicode differences hash to the same id?

For a web scraping project I'm working on, I plan to store entities in a database where their IDs are an md5 hash of their name/title. However, due to Unicode present in the string, different hashes for the same name/title will be present For…
Gamewatch
  • 19
  • 3
1
vote
3 answers

Converting a partial MD5 hash code into a long

I'm using the MD5 algorithm to hash the key for an on-disk hash table (I know it's questionable whether this is the best algorithm to use for this, but I'm going with it for now. The problem is generalizable to any algorithm that produces a byte…
hdt
  • 61
  • 2
  • 4
1
vote
2 answers

Copy badly-named files from one deeply-nested dir, content-address rename them, to another flattened sub-directory, in a Bash one-liner?

How do I copy files distributed throughout a deeply-nested sub-directory, to another sub-directory which is not nested at all (i.e., is flat)? To heighten the difficulty level, I have these constraints/wrinkles. Though the source files have the…
1
vote
0 answers

Bind mount docker client binary from MacOS to docker-dind image

#1 On my Mac $ uname -a Darwin 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64 $ md5 `which docker` MD5 (/usr/local/bin/docker) = d0da0db0b35f2d8ccad29296c297faf3 #2 In a dind…
Ankur Agarwal
  • 23,692
  • 41
  • 137
  • 208
1
vote
1 answer

python, google cloud platform: unable to overwite a file from google bucket: CRC32 does not match

I am using python3 client to connect to google buckets and trying to the following download 'my_rules_file.yaml' modify the yaml file overwrite the file Here is the code that i used from google.cloud import storage import yaml client =…
Kaushik J
  • 962
  • 7
  • 17
1
vote
0 answers

How to fix sonar "Make sure that hashing data is safe here" security issue

After running the sonar Qube following security issue shown for this code snippet. public String createToken(String text) { StringBuilder token = new StringBuilder(32); try { do { token.setLength(0); …
Niranga Sandaruwan
  • 691
  • 2
  • 19
  • 39
1
vote
1 answer

Pretty URLs with hashes (md5)

In our web application we display a list of pulses, but for linking and such we make every pulse uniquely available. In our Couch DB we are giving every pulse a unique id by md5'ing their unique attributes. I.E.: www.foo.com/bar/ Though these md5…
Alex Angelini
  • 459
  • 1
  • 4
  • 12
1
vote
3 answers

TYPO3 9.5 - need help: fe_users convert old md5 passwords

In older TYPO3 versions (<9.5) the fe_user passwords in MD5 where converted live when logging in by the extension salted_passwords. Now I still have some fe_user passwords in MD5 but the salted_password extension does not exist anymore. When an…
1
vote
5 answers

Is it safe to hash passwords that protect sensitive data with MD5?

I've been in discussion with this security guy. He's probably the most I can afford for my new project. Anyways, it is a service that saves sensitive data (Password, PINs) that can be requested by the user via phone. The user has a password (4…
Jay Mcquire
  • 51
  • 1
  • 2
1
vote
4 answers

Is there a way of making an md5sum of all files in subfolders?

I have several exports of telegram data and I would like to calculate the md5 and sha256 hash of all files but it only calculates those in the root directory $ md5sum `ls` > hash.md5 md5sum: chats: Is a directory md5sum: css: Is a directory md5sum:…
1
vote
1 answer

Why does textreuse packge in R make LSH buckets way larger than the original minhashes?

As far as I understand one of the main functions of the LSH method is data reduction even beyond the underlying hashes (often minhashes). I have been using the textreuse package in R, and I am surprised by the size of the data it generates.…
retrography
  • 6,302
  • 3
  • 22
  • 32
1
vote
2 answers

How to send content md5 header in the presigned url request of node js

I want to check the integrity of the object uploaded to S3.So I want to include the md5 header so whenever soomeone uses that url they should upload only the valid content. FYI: I would get the md5 content from the UI to my service. const params =…
user123
  • 259
  • 2
  • 6
  • 23
1
vote
1 answer

md5 on google storage text files

I do a a md5 check on the local file and the remote file to see if I should down load the file from google storage or not, I do the following on the local files: def md5(self,file_name): hash_md5 = hashlib.md5() with open(file_name,…
Patrik
  • 55
  • 1
  • 6
1
vote
2 answers

Copy Function in C not creating matching Checksums

I written a simple copy program that copies a file and generates an MD5, It runs and generates the MD5 correctly. However when verifying the file generated by the copy function it does not match the source MD5. I can't see any reason for this in my…
hdcdigi
  • 75
  • 7