0

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#?

Roy Reznik
  • 2,040
  • 4
  • 22
  • 28

2 Answers2

2

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

How to generate HMAC-SHA1 in C#?

Community
  • 1
  • 1
jbtule
  • 31,383
  • 12
  • 95
  • 128
0

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

Community
  • 1
  • 1
Gianluca Ghettini
  • 11,129
  • 19
  • 93
  • 159
  • Thanks. Close question, but I asked for C# implementation, while he asked for Java - So I don't believe it's a duplicate. – Roy Reznik Nov 27 '12 at 13:52