简体   繁体   中英

Shared-Key Signature

I know that most uses of cryptographic signatures are with public/private keys, but I need to sign information using a pre-shared key. I know I can just encrypt the data, but I prefer signing it..

Is it possible in C#?

HMAC is the usual shared key signing algorithm, and it is doable in c#

How to generate HMAC-SHA1 in C#?

there are plenty of schemes (involving HMAC) to perform message signature with symmetric (pre-shared) key material.

possible duplicate:

Using symmetric key (AES -128) to sign and verify a message

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM