• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SHA encryption algorithm doubt

 
Ranch Foreman
Posts: 275
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.)
 
Ranch Hand
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please see http://forums.sun.com/thread.jspa?threadID=5339639&tstart=0 .
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the future, please BeForthrightWhenCrossPostingToOtherSites.
reply
    Bookmark Topic Watch Topic
  • New Topic