﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » TripleDesWrapper and SQL 2005 Encryption</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 10:41:01 GMT</lastBuildDate><ttl>20</ttl><item><title>TripleDesWrapper and SQL 2005 Encryption</title><link>http://forum.strataframe.net/FindPost20683.aspx</link><description>I am using SQL 2005 to encrypt data using the Tripe_Des protocol.&amp;nbsp; I'd like to use the TripleDesWrapper from strataframe within my app. to decrypt.&amp;nbsp; Is this possible?&lt;/P&gt;&lt;P&gt;Sql 2005 uses a password for encryption.&amp;nbsp; Mine is 24 characters long.&lt;/P&gt;&lt;P&gt;In my strataframe app. I use the same password for the encryption key and use just the first 8 characters for the vector.&lt;/P&gt;&lt;P&gt;Any help would be appreciated as Sql 2005 can decrypt the data but my app replies that it is bad data within the business object when attampting to decrypt.&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Cory</description><pubDate>Tue, 11 Nov 2008 11:00:12 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: TripleDesWrapper and SQL 2005 Encryption</title><link>http://forum.strataframe.net/FindPost20698.aspx</link><description>No problem :)</description><pubDate>Tue, 11 Nov 2008 11:00:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: TripleDesWrapper and SQL 2005 Encryption</title><link>http://forum.strataframe.net/FindPost20697.aspx</link><description>Thanks Trent I appreciate the quick response :)</description><pubDate>Tue, 11 Nov 2008 10:55:54 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: TripleDesWrapper and SQL 2005 Encryption</title><link>http://forum.strataframe.net/FindPost20696.aspx</link><description>If you do not hold both pieces of the key, then whether you are using the 3DESWrapper or something else, you will not be able to decrypt this.&amp;nbsp; I recommend the approach I mentioned using the BO to do this.&amp;nbsp; This way it is totally encrypted while stored in SQL Server, yet you are in control.</description><pubDate>Tue, 11 Nov 2008 10:49:39 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: TripleDesWrapper and SQL 2005 Encryption</title><link>http://forum.strataframe.net/FindPost20695.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;Let me be a little more specific.&lt;/P&gt;&lt;P&gt;I'm encrypting the data at the SQL server using the Triple_DES protocol, but from what I'm reading Sql 2005 salts their vector with a random value when the key is made.&amp;nbsp; I don't have access to that value so can't decrypt it on the app side of the equation.&amp;nbsp; So the question is has anyone decrypted data that has been encrypted using Sql 2005 from within a strataframe app using the TripleDesWrapper or is this even possible?</description><pubDate>Tue, 11 Nov 2008 10:30:26 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: TripleDesWrapper and SQL 2005 Encryption</title><link>http://forum.strataframe.net/FindPost20685.aspx</link><description>I don't totally understand your post in regards to where you are encrypting your data.&amp;nbsp; If you are allowing SQL Server to encrypt the data versus the 3DESWrapper, then you MUST make sure that your key and ventors are identical.&amp;nbsp; But generally, I never do it that way.&amp;nbsp; I will create a custom property that exposes the field that I want to encrypt/decrypt.&amp;nbsp; There is a sample of this in the CustomerCreditCardsBO in StrataFlix.&amp;nbsp; It isn't plumbed into a dialog at the moment, but you can see the logic within the BO showing how to encrypt/decrypt a property to and from a database using the 3DESWrapper.</description><pubDate>Tue, 11 Nov 2008 09:18:36 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>