• 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

Digest in java

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please can naybody help me out...
I have one script called digest on linux when i am passing input
"bharat" to it it's giving me output : "37V7Ll82wfiT28Et1miX1A==".
When i am passing that same string to my java digest class it's giving me output: "[B@3ac748".
Since i have to store that encrypted password in ldap for further authetication what is the proper way for digest please help me out?
Why the results are different?
Bharat A. Khillari
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like the digest class is interpreting your String as a different type Object other than a String. The output looks like a String representation of the reference to the Object.

However, this topic is not relavant to the JavaRanch forum. This forum is for discussion of the JavaRanch site, not Java. Therefore, I am moving this to Java in General (beginners).
 
reply
    Bookmark Topic Watch Topic
  • New Topic