Your code still doesn't decrypt or reverse the encryption or crack it, it just stores values. If you are given an encrypted password your code can't do jack with it. A real decrypting algorithm could, but those do not exist.