A bit off-topic for the oddball case that you're describing, Stephen - but there is a (commercial) cryptograph software licensing .NET library available from LogicNP Software <http://www.ssware.com/cryptolicensing/cryptolicensing_net.htm> that discusses how that needs to be set up, and they have an obfuscation library as well (developed and marketed a couple of years prior). The information in both of these packages may be of interest to you, anyway.
_____ Ian Thomas Victoria Park, Western Australia From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Stephen Price Sent: Friday, March 22, 2013 10:06 AM To: ozDotNet Subject: Encryption Hey all, http://msdn.microsoft.com/en-us/library/ms229741.aspx "...which allows you to encrypt data using information from the current user account or computer. " I'm using ProtectedData to encrypt and decrypt passwords so they can be stored in database encrypted, but they want to be able to see what the password is for administrators. It all works great except when a user logs in (using a custom principal, not the user who did the encryption.. ie the Admin) and it doesn't work as the user is different, or the machine is different. I'm looking for a way to encrypt and decrypt at an app level rather than user/machine level. Don't mind if keys are involved. Anyone done this and is there a framework class somewhere for that? cheers, Stephen