This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Security and the fly likes SHA encryption algorithm doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "SHA encryption algorithm doubt" Watch "SHA encryption algorithm doubt" New topic
Author

SHA encryption algorithm doubt

Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

Hi All,

In my project SHA encryption is being used for encryption.
I have received a request to migarte this to a 64 bit algo so that it is more secure.

All i wanted to know is , when we write:

MessageDigest digest = MessageDigest.getInstance("SHA");


which version of SHA is called ( SHA-1 or any other )

so that I can trace it and study the encryption scheme used.

Thanks


Anrd
"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41149
    
  45
I'm not sure what you mean by "64-bit algo". SHA-1 (which I assume you're using) creates 160bit digests.

Java also supports "SHA-256", which creates 256bit digests.

(Note that SHA is a hash -or digest-, not a cipher. So any "encryption" it's used for would be one-way.)


Ping & DNS - my free Android networking tools app
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

Please see http://forums.sun.com/thread.jspa?threadID=5339639&tstart=0 .


Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41149
    
  45
In the future, please BeForthrightWhenCrossPostingToOtherSites.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SHA encryption algorithm doubt
 
Similar Threads
Login page security using Servlet
Enabling SSL
Cipher Suite Interpretation
Security Algorithm available in java.security core
Password Encryption: Rationale and Java