Hi,
I have the following code, It encrypts the text into my access database but when I reopen the application I get encrypted text on the scheduler (it doesnt decrypt). Is there anything I am missing?
var summarySchedulerMapping = appointmentMappingInfo.FindBySchedulerProperty("Summary");
summarySchedulerMapping.ConvertToScheduler = new ConvertCallback(ConvertSummaryToScheduler);
summarySchedulerMapping.ConvertToDataSource = new ConvertCallback(ConvertSummaryToDataSource);
private object ConvertSummaryToScheduler(object item)
{
return Encryption.Decrypt((string)item);
}
private object ConvertSummaryToDataSource(object item)
{
return (object)Encryption.Encrypt((string)item);
}
Cheers
I have the following code, It encrypts the text into my access database but when I reopen the application I get encrypted text on the scheduler (it doesnt decrypt). Is there anything I am missing?
var summarySchedulerMapping = appointmentMappingInfo.FindBySchedulerProperty("Summary");
summarySchedulerMapping.ConvertToScheduler = new ConvertCallback(ConvertSummaryToScheduler);
summarySchedulerMapping.ConvertToDataSource = new ConvertCallback(ConvertSummaryToDataSource);
private object ConvertSummaryToScheduler(object item)
{
return Encryption.Decrypt((string)item);
}
private object ConvertSummaryToDataSource(object item)
{
return (object)Encryption.Encrypt((string)item);
}
Cheers