set a column in u r storeProcedure TestCrypt (varbinary(255), null) for retrive: SELECT cast(s.TestCrypt AS varbinary) AS TestCrypt while (reader.Read()) { data.TestCrypt = (byte[])reader["TestCrypt"]; } for decript: plaintext = srDecrypt.ReadToEnd();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)