Encryption and Decryption using Asp.net and MySql
Hello freinds,
actually i am developing a encryption and decryption application in asp.net 2005 and mysql Database.I am implementing Rijndael algorithm.
my code perfectly works with SqlServer 2000.
but in mysql ,it is showing some problem.
actually while retriving record through datareader,i have to convert the password contained in datareader into byte[] type.but in mysql it is not converting,while it works fine with sql server.
password field datatype is varbinary.
please reply me????????
MySql.Data.MySqlClient.MySqlDataReader reader = cmd.ExecuteReader(CommandBehavior.SingleRow);
byte[] encryptedData = (byte[])reader["CreditCardData"];
|