How to decrypt a string encrypted with HMACSHA1?

前端 未结 3 828
南笙
南笙 2021-02-08 20:12

I\'m an encryption novice trying to pass some values back and forth between systems. I can encrypt the value, but can\'t seem to figure out how to decrypt on the other end. I\

3条回答
  •  独厮守ぢ
    2021-02-08 20:51

    HMAC-SHA1 is a one-way hash, not a bidirectional encryption algorithm. You can't decrypt it. I don't have time to provide full encryption code here - it's a complicated topic, but Barry Dorrans' "Beginning ASP.NET Security" would give you a good starting point. (Only some of it is ASP.NET-specific.) You could also watch his DDD talk on the topic.

提交回复
热议问题