-4

MVC 5 >> convert hash password to readable text.

Sample : HashPasword = AMVicVYXq/Gnj+gJ9QMThNZt84TJZwCIIUdFA3upr+wyMZUu4maPpkXiJhbZ5djwgw== should be convert to 123456

tereško
  • 58,060
  • 25
  • 98
  • 150
Milli P
  • 17
  • 1
  • 5

1 Answers1

4

By definition, a hash cannot be converted to readable text. So no, what you're asking is not possible.

123456 might convert to AMVicVYXq/Gnj+gJ9QMThNZt84TJZwCIIUdFA3upr+wyMZUu4maPpkXiJhbZ5djwgw==, but AMVicVYXq/Gnj+gJ9QMThNZt84TJZwCIIUdFA3upr+wyMZUu4maPpkXiJhbZ5djwgw== will not convert back to 123456.

Madara's Ghost
  • 172,118
  • 50
  • 264
  • 308
  • Sure it can `HashPassword = "Hello World"` - now your hash variable is equal to the readable text "Hello World" – Benjamin Gruenbaum Sep 10 '14 at 12:11
  • 1
    @BenjaminGruenbaum are you fighting in a who's-the-most-pedantic-person competition? Because you're winning! – Florian Margaine Sep 10 '14 at 12:25
  • If we're going for "most pedantic", technically it *could* be reversed if you knew the IV and key used to generate it, but since one or both of those is always random, and not stored, there's no way just with the string itself to get the original text back. – Chris Pratt Sep 10 '14 at 13:11
  • Why not, we can brute force ofcourse... – user3459110 Sep 10 '14 at 14:21
  • `technically it could be reversed if you knew the IV and key used to generate it` incorrect. Hashes aren't random. Same input is meant to give same output. One-directional, however. – Mardoxx Sep 10 '14 at 14:40