Hi All,
i wonder if anyone has an example of a decryptbypassphrase where the key (in this case a varchar parameter) has an apostrophe?
see below for my example:
SELECT cast(DecryptByPassphrase(''' + @uncryptpassword + ''',dbo.tblx.eePassword) as varchar(32)) as eePassword,
FROM dbo.tblx
@uncryptpassword is set to ABC123'
the select works for all other entries where an apostrophe is not set.
thanks in advance