TripleDESWrapper


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
What is the key to the encryption here when I use this wrapper?



What will I need to move to my webserver upon deployment (thinking ahead) to maintain the ability to read encrypted data I deploy?



I am using this (as below) to encrypt both database values for some sensitive information as well as parameters I pass to avoid the possibility of hack and SQL injection attacks. Am I using it correctly?



Thanks,



Keith



sample implementation:

Dim x As String = "hhhh"

Dim encrypted_x As String

Dim decrypted_x As String



Dim wrapper As MicroFour.StrataFrame.Security.Encryption.TripleDESWrapper

wrapper = New MicroFour.StrataFrame.Security.Encryption.TripleDESWrapper



encrypted_x = wrapper.Encrypt(x)

decrypted_x = wrapper.Decrypt(encrypted_x)

Keith Chisarik
Reply
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
Yes, this looks fine.  The only other thing that I would recommend is creating your own encryption key and vector rather than using the default keys.  If you notice, there is an overload on the New().  Use the second overload to provide the key and vector:

loDES = New TripleDESWrapper(New Integer() {24 values}, New Integer() {8 values})

The intellisense should give you some sample code on this.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search