Using XmlBasics to encrypt a file


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I'm attempting to use the XmlBasics class in the XML namespace of SF. I need to encrypt the file, but am having a bit of trouble figuring out how to do that.



I do not understand how the validation key works, and if it is related to encryption. I also do not understand how the key/vector is set for the encryption of XML files. They seem to be hard coded. I've reviewed the training material from the class and am still confused.



Also, I note that you are using obsolete encryption methods within this class...any reason for that?



Thanks!
Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Greg,

You do not provide a Validation Key when writing the XML file.  It is assigned when the XML file is created.  I have created a sample that shows how to use this logic.  The Xml file is encrypted and used the validation key.  When an invalid Validation Key is provided, we actually prevent the records from being loaded rather than throwing an error.  I wrote a sample on how to use this that you can find here:

http://forum.strataframe.net/FindPost13096.aspx

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Alien The solution must be a VS 2008 solution.



I'm going to load up VS 2008 soon...no...really, I've just been busy Blush



(Jeesh, this is a tough crowd to keep up with Tongue )
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Oops...yeah, it was Blush .  I have posted an update that has two solutions...one for each version.  I did write it in 2.0, so that part will work. Smile http://forum.strataframe.net/FindPost13102.aspx
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Thanks Trent! And I just installed VS 2008 BigGrin
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Greg McGuffey - 18 Years Ago
     bump...
Greg McGuffey - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Greg McGuffey - 18 Years Ago
Trent L. Taylor - 18 Years Ago
                         :alien: The solution must be a VS 2008 solution.

I'm...
Greg McGuffey - 18 Years Ago
                             Oops...yeah, it was:blush: . I have posted an update that has two...
Trent L. Taylor - 18 Years Ago
                                 Thanks Trent! And I just installed VS 2008 :D
Greg McGuffey - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search