• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Decode Password from .htaccess file?

 
Drew Lane
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to decode some passwords using Java that were stored in an Unix .htacess file.
Does anyone know if this uses Base64 encoding?
Any suggestions for decoding these passwords?
Thanks,
Drew
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think this is possible, and it isn't Base64 encoded.
From what I understand, the password stored for htAccess is the result of a one-way hash function. That is, once you have converted a password into its hash, there's no going back.
Validation is done by getting the password, hashing it again, then comparing the two hashed values.
I'd be happy to be wrong though.
 
Drew Lane
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you happen to have a Java code snippet that shows the validation process?
Thanks,
Drew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic