Linked Questions

831 votes
34 answers
1.1m views

I have a byte array filled with hex numbers and printing it the easy way is pretty pointless because there are many unprintable elements. What I need is the exact hexcode in the form of: 3a5f771c
Andre's user avatar
  • 9,200
1 vote
2 answers
1k views

I have a binary string containing 160 digit. I have tried: new BigInteger("...
Arst's user avatar
  • 3,317
1105 votes
34 answers
1.2m views

Is there any method to generate MD5 hash of a string in Java?
Akshay's user avatar
  • 12k
253 votes
14 answers
156k views

I have an integer that was generated from an android.graphics.Color. It has a value of -16776961. How do I convert it into a hex string with the format #RRGGBB? Simply put: I would like to output #...
Bosah Chude's user avatar
  • 3,830
75 votes
16 answers
99k views

In my app I have a requirement to generate an MD5 checksum for a file. Could you please tell me if there is any way in which this can be achieved? Thank you.
Ingrid Cooper's user avatar
59 votes
5 answers
75k views

I'm trying to get the SHA256 of a string in Android. Here is the PHP code that I want to match: echo bin2hex(mhash(MHASH_SHA256,"asdf")); //outputs "...
Eamorr's user avatar
  • 10.1k
19 votes
3 answers
19k views

I want to move a progressively streamed mp3 file to sd card once it is completely loaded. Is there any way of achieving that. I've seen that the MediaPlayer completely downloads the whole file while ...
Rahul Verma's user avatar
  • 2,150
4 votes
3 answers
16k views

in the last 5 hours im trying to do something that should be very simple and did it in like 10 minutes in C#, but no luck with Java. I got a 32 UpperCase and Numeric String (A-Z0-9), I need to convert ...
user avatar
5 votes
4 answers
6k views

Here is my code snippet: int eValue = 79, t; int bitLength = 1024; // KeySize BigInteger e = new BigInteger(Integer.toString(eValue)); KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); ...
Pawan's user avatar
  • 1,523
7 votes
3 answers
7k views

I need to find a way to find a way to find the hash for the base64 encoded data in the XML node //note/resource/data, or somehow otherwise match it to the hash value in the node //note/content/en-note/...
bguiz's user avatar
  • 28.5k
0 votes
2 answers
7k views

Am working on decoding a protocol used by a certain gps device to communicate. Right now, am analyzing the first data packet that it sends. I am able to read it, but am thinking am not reading it ...
sergio's user avatar
  • 1,046
4 votes
1 answer
3k views

I have an app available in Pro (paid) & Free (add supported) versions. Both versions are signed with the same key store, but each one with its own key alias. Now, I'd like to develop a plugin ...
Tim Autin's user avatar
  • 6,173
3 votes
2 answers
3k views

The images will not cache on internal storage and crashes on devices without an External SD Card. I have tried what I know and nothing worked. Here is the ImageCache.java package com.minecraftpix....
Austin Hodak's user avatar
1 vote
3 answers
3k views

I've got this function for encrypting passwords in Java, but somehow when I call MessageDigest, it returns a different result every time even though I call it with the same password. I wonder if I am ...
user344146's user avatar
0 votes
2 answers
2k views

I am using following code to generate MD5 Hash for my application it encodes some string value and then I send this generated hash through my web service to some .Net code, that code read my MD5 hash ...
NoNaMe's user avatar
  • 6,290

15 30 50 per page