message-digest Questions

2

Solved

My objective is to perform “Hash signing” using smart card in Python. There are hashlibs used, but there are no specific SHA1 or SHA256 functions in python. My Work: hash_object = hashlib.sha1(b'He...
Hypoxia asked 27/5, 2016 at 11:53

3

Solved

I need to hash multiple keys from multiple threads using MessageDigest in a performance critical environment. I came to know that MessageDigest is not thread safe as it stores its state in it's obj...
Stuccowork asked 9/7, 2013 at 17:54

4

Solved

So reading this post: How can I calculate the SHA-256 hash of a string in Android? and the docs: http://developer.android.com/reference/java/security/MessageDigest.html I'm curious; which phones ...
Cobber asked 12/4, 2012 at 18:11

3

Solved

Hash functions always produce a fixed length output regardless of the input (i.e. MD5 >> 128 bits, SHA-256 >> 256 bits), but why? I know that it is how the designer designed them to be, but why th...
Kowal asked 13/4, 2015 at 6:28

2

Solved

In Java, if I want to compute an MD5 sum, I need to be aware of possible exceptions: try { MessageDigest md = MessageDigest.getInstance("MD5"); // Do stuff } catch (NoSuchAlgorithmException e) {...
Oblivion asked 3/4, 2014 at 1:52

2

I have some problems with verifying S/Mime signed message with x509 certificate. This is my code: public class verifyMsg { private static void verify(SMIMESignedParser s) throws Exception { Sec...
Meemeece asked 21/12, 2011 at 13:18

2

Solved

I want to know if the MD5 digest algorithm is guaranteed to be available in all Android devices before I bluntly ignore the checked exception that MessageDigest.getInstance("MD5") can throw.
Erme asked 3/1, 2013 at 13:15

1

Solved

What exactly does this do? I tried to look it up but didn't find anything. Reason for asking is I want to incorporate a SALT byte[] into a value which is then hashed. So should it be done like thi...
Timid asked 22/7, 2013 at 11:41

1

Solved

We're trying to avoid saving duplicate files. However, our md5 result is always different from BlobInfo. How we calculate it: MessageDigest messageDigest = java.security.MessageDigest.getInstanc...
Kamchatka asked 23/11, 2012 at 23:49

2

Solved

I've blindly followed OWASP's recommendation on hash generation in java (see here), and I'm not sure I've done it correctly. Specifically, I'm unsure about the purpose and effect of MessageDigest.r...
Masao asked 10/12, 2012 at 14:12

1

Solved

I know very little about encryption/hashing. I have to hash an encryption key. The example in Java is like this... String encryptionKey = "test"; MessageDigest messageDigest = MessageDigest.get...
Giraudoux asked 14/6, 2012 at 18:14

1

Solved

If I generate a message digest (for a security feature in my app) using this Java code: java.security.MessageDigest saltDigest = MessageDigest.getInstance("SHA-256"); saltDigest.update(UUID.random...
Impend asked 26/9, 2011 at 15:7

3

Solved

I am using java message digest to create MD5 hash, which is used for authentication. The MD5 hash is stored in the database as varchar2. I did a test to create a user on my tomcat server on my loca...
Lampkin asked 3/8, 2011 at 15:3

2

Solved

My understanding of a message digest is that it's an encrypted hash of some data sent along with the encrypted data so you may verify that the data has not been tampered with. What is the differenc...
Reggie asked 12/9, 2010 at 22:5

6

Solved

We have a requirement of reading/writing more than 10 million strings into a file. Also we do not want duplicates in the file. Since the strings would be flushed to a file as soon as they are read ...
Politian asked 14/6, 2010 at 13:11

6

Solved

It is trivial to use a secure hash function like SHA-256, and continuing to use MD5 for security is reckless behavior. However, there are some complexities to hash function vulnerabilities that I w...
Hemostat asked 22/5, 2010 at 19:27

4

I'm looking for a c# wrapper to a native MD5 or SHA1 library to improve hash calculation performance. Previously I switched SharpZipLib to zlib and got more than 2x performance boost. (ok, you've ...
Spinning asked 27/6, 2009 at 0:6
1

© 2022 - 2024 — McMap. All rights reserved.