I know there are functions like ENCRYPTBYPASSPHRASE
for symmetric encryption but I look for a way in SQL Server to encrypt a field so that I can pass the encrypted string as a part of a URL to the outside world, in a varchar or nvarchar. Actually I don't want the encryption output to be stored in a varbinary field but rather being sit in a nvarchar.
It is OK if the algorithm not being strong, I just need it to put the output in a URL.
Is there any way to achive this?