I'm trying to wrap my head around sql2005 decryption. Just to cut to the
chase...from what I've read there are two functions used to encrypt and
decrypt data, here is part of that article to decrypt data in a select
statement (below).
This is all fine and good but how do I restrict other users from running this
function? I only want one or two other users with rights to this decrypt
function. Is this possible?
OPEN SYMMETRIC KEY TestTableKey
DECRYPTION BY CERTIFICATE EncryptTestCert
SELECT CONVERT(VARCHAR(50),DECRYPTBYKEY(EncryptSecondCol)) AS
DecryptSecondCol
FROM TestTable
RE: NTE_BAD_DATA ... They are NOT used DIRECTLY to encrypt / decrypt data;... you should generate a RANDOM SESSION KEY and select a SYMMETRIC ENCRYPTION ... // imported from a BLOB read in from the source file or having ... (microsoft.public.platformsdk.security)
Re: Back Doors ... >> Design into the system a master key....Encrypt that with public key. ...Decrypt random symmetric key with private key.... (sci.crypt)
Re: CAPI and RC4: can not decrypt when Final parameter is set to F ... to store ASYMMETRIC key pairs - never symmetric keys like RC4,... Now when you need to encrypt at one place and decrypt at the other normally ... Get a HCRYPTPROV handle to a key container with CryptAcquireContext ... (microsoft.public.platformsdk.security)
Re: RSA - Public vs. Private Keys ... This is a common pattern for license software... your client will send a unique machine hash to the ... will let us decrypt with a Public Key (or simply not ... |> RSA is intended to encrypt messages with public keys only. ... (microsoft.public.dotnet.security)