• I know that encryption is natively available in SQL Server.

    I just wanted to demonstrate a non-trivial use of a CLR assembly, and I just happened to have some C# encryption code handy.