Reversible hash function?

前端 未结 5 1409
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 01:41

I need a reversible hash function (obviously the input will be much smaller in size than the output) that maps the input to the output in a random-looking way. Basically, I

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 02:16

    Basically, you are looking for 2 way encryption, and one that probably uses a salt.

    You have a number of choices:

    1. TripleDES
    2. AES

    Here is an example:" Simple insecure two-way "obfuscation" for C#

    What language are you looking at? If .NET then look at the encryption namespace for some ideas.

提交回复
热议问题