How to use strong-name in encrypting/decrypting strings -
08-28-2007
, 10:25 AM
Hi,
I'd like to store an encrypted "license key" in my web.config (produced on
my computer), that can only be decrpted by my assembly no matter where it is
running. I think this fits with the "public key/private key" model and
specifically since I already sign my assembly with a strong-name, it would
seem like that would be a good source for the keys to encrypt/decrypt.
Oddly, I don't see anyone talking about how that might be done, so perhaps
it isn't a good idea. Has anyone used their strong-name to encrypt a string
on one machine, and use the assembly signature as the "public key" to
decrypt the string on another?
Thanks!
James |