-2

I am working in one app where i need to implement the decryption of conversation.The conversations are encrypted using MD5 algorithm. I don't have any idea regarding this.

Could anybody help me out.thanks in advance!!!

Janmejoy
  • 2,721
  • 1
  • 20
  • 38
  • please give some more details. which encrytption algorithm does your system use? or do you have to implement encryption part too? – stinepike Mar 15 '13 at 07:15
  • @StinePike suppose i got message in encryption mode from some user i need to decrypt that ,how could i implement that. – Janmejoy Mar 15 '13 at 07:16
  • If you don't have the decryption keys and don't know what type of encryption it is you are screwed... – the-ginger-geek Mar 15 '13 at 07:18
  • @Neil yes ,suppose i will create own encryption or MD5 encrption, then it will be fine right!! – Janmejoy Mar 15 '13 at 07:22

2 Answers2

1

First off, you'll have to know what encryption is used exactly.

A range of cryptographic algorithms is implemented in Android's Cipher class. If it's not in there, you'll have to find a third party implementation or roll your own.

Paul-Jan
  • 16,746
  • 1
  • 63
  • 95
  • @thanks Paul-Jan for you quick response suppose if will create own encryption process then it will be fine or not to decrypt!! – Janmejoy Mar 15 '13 at 07:20
  • suppose MD5 encryption process is implemented then how to decrypt? – Janmejoy Mar 15 '13 at 07:27
  • MD5 is a hash, not an encryption. **It cannot be decrypted**, you can only hash a different input set and test if it leads to the same outcome. – Paul-Jan Mar 15 '13 at 07:31
1

Here you can see a simle encrypt/decrypt program using AES128 algorithm. If you search you can find plenty of so answers too lik this.

For md5 you can use java.security.MessageDigestSpi class. you can check any of these examples. I didn't try these examples so you need to verify :)

link1, link2, link3

But first of all study over encrytpion algorithms, hashing to learn the basics

Community
  • 1
  • 1
stinepike
  • 54,068
  • 14
  • 92
  • 112
  • @thanks for your answer but the examples are using encrypt and decrypt of AES128 alg i need using MD5 hash key !! – Janmejoy Mar 15 '13 at 07:46