Questions tagged [message-digest]
131 questions
1
vote
0 answers
"Application not installed", is it a bug of ADT?
I exported an apk by ADT in eclipse, and I attempted to install this apk into a avd, but it raised "Application not installed".
I checked the logcat, and found this:
W/PackageParser(59): java.lang.SecurityException: META-INF/MANIFEST.MF has invalid…

hardPass
- 19,033
- 19
- 40
- 42
1
vote
1 answer
MD5sum is not calculated correctly
I am trying to match the md5sum of a downloaded file from server.
Processing will be continued only if sums match.
try {
MessageDigest digest = MessageDigest.getInstance("MD5");
File f = new File(fileName);
InputStream is = new…

Dheeraj Joshi
- 3,057
- 8
- 38
- 55
0
votes
1 answer
Should I do any transformation to AES CMAC provided key?
I've been provided with a java.util.String 32 characters length. The String contains 16 pairs of hexadecimal characters which represent the key that I should use on an AES and CMAC message signature creation.
I've a problem getting the correct…

Antonio E.
- 359
- 1
- 9
- 27
0
votes
3 answers
How is an MD5 or SHA-X hash different from an encryption?
I've read a couple times that MD5 is not an encryption, e.g. on MD5 ... Encryption? or Command Line Message Digest Utility.
Well, I get that it's a hash/message digest, and the explanation in the links above says an encryption has to have a key,…

inman320
- 501
- 3
- 13
0
votes
1 answer
When I hash string using sha-256 and compare it with online hash tools the results are different using java 8?
When I trying to hash string in java 8 using SHA-256 with different library such as MessageDigest, guava and apache the result is not same in the online tool here what I do:
public static String hash(String planText){
MessageDigest messageDigest…

albara dev
- 3
- 1
0
votes
0 answers
PKCS1 message digest octet String openssl Objective-c
//Android Java code
String OID_PKCS9_AT_MESSAGE_DIGEST = "1.2.840.113549.1.9.4";
String hastosign ="92a70799e19d8734fecfb8e59aa930e9f386f7645059a1f2f04eb8483c9b5f1d" \\Line 1
byte[] dataHash = Hex.decode(hastosign) …
0
votes
1 answer
SAML 2.0 Digest Value Calculation in SAML Assertion
I want to know how digestValue was calculated when we have AttributeStatement in the SAML 2 Response.
I can calculate and get the same digestValue when I do not have any "saml2:AttributeStatement" returned in SAML response by:
Deleting ds:Signature…

Allen Li
- 1
- 2
0
votes
0 answers
Calculate SHA3-256 digest of a file prefixed with shared secret
I am using the following code to compute the message digest of a file -
in points to a file here
bytesRead = in.read(inputBuffer);
md= MessageDigest.getInstance("SHA3-256");
while (bytesRead > 0) {
…

sunny
- 149
- 8
0
votes
0 answers
Openssl compatibility issue between 0.9.8h and 1.1.1k
Openssl compatibility issue between 0.9.8h and 1.1.1k
In our application previously we were using openssl 0.9.8h and we have upgraded it to Openssl 1.1.1k.
After upgrading Openssl we didn't make any change in command
for encryption we are using…

shubham
- 21
- 3
0
votes
0 answers
Calculating checksum using message digest from ByteBuffer
I get the data in the form of byte buffer of 32KB, and want to calculate the checksum of the whole data. So using the MessageDigest I keep updating the bytes into it and at the end I use the digest method to calculate the bytes read and calculating…

SSharma2203
- 217
- 4
- 18
0
votes
0 answers
Get MessageDigest instance digest and block sizes?
How to get the digest size and the block size of a message digest algorithm based on its MessageDigest instance?

TheChilliPL
- 337
- 1
- 5
- 14
0
votes
1 answer
HMAC-Whirlpool implementation in Android
Has anyone implemented or using Hmac-Whirlpool on Android phone?
I found whirlpool.java on internet but default security provider in Android SDK seems not to have Whirlpool nor Hmac-Whirlpool.

bob
- 2,674
- 1
- 29
- 46
0
votes
1 answer
Error invoking bsh method : eval Sourced file : inline evaluation of : '' import java.security.messageDigest
in jemeter
import java.security.MessageDigest;
import java.util.Random;
......
why?
Error invoking bsh method : eval Sourced file : inline evaluation of : '' import java.security.messageDigest .....
Java 8 is installed by default.
why not?

k-debugger
- 7
- 3
0
votes
2 answers
Java MD5 Copy function generates different digest
I am experimenting with Java and created a small program that copies a file and generates a MD5 checksum. The program works and generates a checksum, but the resulting file that is copied does not match the original checksum.
I am new to Java and do…

hdcdigi
- 75
- 7
0
votes
1 answer
Do I need to pass the MessageDigest object from register to login?
Ok, I'm a little confused. I'm trying to use MessageDigest to store my passwords in the database as MD5 hashes, and then pull the hash out to check a user's password when they try to log in.
So, when a user registers, at register.jsp, I use this…

user752894
- 5
- 1