Questions tagged [message-digest]
131 questions
0
votes
2 answers
Verifying file digests
Say I have 'n' number of files, for each of which I have CRC32, MD5 and SHA1 digests
Now these 'n' number of files are actually split files/archives of single large file.
When these smaller files are recombined/joined into the larger file, we can…

PoorLuzer
- 24,466
- 7
- 31
- 35
0
votes
2 answers
Hashing password and comparing with MD5
I have the following requirement.
1. save a user password converted to hash(digested)
2. when comparing with data base, add random bytes with the password given from user
3. now send the random bytes added password to DAO class
4. separate the…

Java Questions
- 7,813
- 41
- 118
- 176
-1
votes
1 answer
SHA256 hash smillar to .Net hash
I have am doing an Oauth App, where in few parts the hash is calculated via a .Net application, following is the .Net code to compute the hash
public static string GetBase64CodeChallange(string str)
{
using (SHA256 sha256Hash = SHA256.Create())
…

Rober
- 73
- 1
- 8
-1
votes
1 answer
How can I generate an MD5 hash on Java Card 2.2.1?
I'm trying to hash an 8-byte message (maybe need to enlarge it to 128) using Java Card which supports MD5. This is my source code:
package net.sourceforge.globalplatform.jc.helloworld;
import javacard.framework.*;
import javacard.security.*;
import…

MJay
- 987
- 1
- 13
- 36
-1
votes
2 answers
MD5 Python Implementation
I am looking to learn more about hashing algorithms, specifically the Message Digest 5 algorithm. And specifically in a slightly more up-to-date version of Python (3+.)
I know you can do the whole from hashlib import md5 thing, and that…

Mick Ashton
- 356
- 4
- 15
-1
votes
1 answer
I am comparing return value of BufferedReader.readLine() and a string, but it's not working
What I have done is, I have created two files - one (message.txt) has the message "hello!", and I have created its Messagedigest and stored it in second file (md.txt).
Now I am trying to create a program where it accepts both the message and its md,…

Juhi Davda
- 113
- 1
- 1
- 8
-1
votes
1 answer
Wrong SHA-256 hash of a string in MessageDigest
in some tests i using MessageDigest library in Groovy and sometimes this function returns incorrect value. Here is my code below:
import java.security.MessageDigest;
String.metaClass.toSHA256 = {
def messageDigest =…

mabuno
- 13
- 2
- 9
-1
votes
1 answer
Why SHA1 is slower than AES? JCE
I'm currently building applications, which uses crypto primitives. For encryption and hashing I use javax.crypto and java.security packages. I did some benchmarking and it turned out, that ECB-AES-128 is faster than SHA1.
Code that I used for AES…

Sparrow_ua
- 664
- 1
- 11
- 28
-1
votes
2 answers
found different MD5 hash value generated by java and datastage
I am trying to generate MD5 checksum value using java for a string "TREFFLAGDATAC000000EN", but for the same string the IBM InfoSphere DataStage is generating a differnt MD5 checksum value.
Can anyone please direct me on how to generate the same MD5…

user3488451
- 1
- 2
-1
votes
2 answers
Getting input text back out of MessageDigest
There are many people here on SO suggesting different approaches to the problem that I am having, but non of them seem to work for me. I am currently testing a timestamp server and (among other things, I am sending the server a message) and I need…

Erki M.
- 5,022
- 1
- 48
- 74
-2
votes
1 answer
Hashing SHA-256 for C# and Java
I needed to generate the hash in Java and then check it in C#. How to get the same output from these two algorithms when converting back to a string?
------------C#------------
?
------------Java------------
public static String encrypt(String…

Anh Trung
- 21
- 7