Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 28, 2012 10:18 AM by Neodynamic
Member
8 Points
67 Posts
Nov 27, 2012 11:25 AM|LINK
Hi,
I'm encrypted the textbox value to base64 format and saving it to a table.
How to check the column value is encrypted or not?
Thanks & regards,
Anand
Star
10258 Points
1760 Posts
Nov 27, 2012 12:28 PM|LINK
Hi
Refer the following link for an idea on how to handle whether the value is encrypted or not.
http://social.msdn.microsoft.com/Forums/en/netfxbcl/thread/b29f7fec-cdb7-4756-b7c9-b0edd374f4c9
Participant
1008 Points
289 Posts
Nov 28, 2012 10:18 AM|LINK
Are you just converting a TextBox value to Base64? If so, then I'd not call it "encrypted"
To check if a string is a valid Base64 you can use this:
try { byte[] tmp = Convert.FromBase64String(s); return true; } catch { // It's not a base64 encoded string return false; }
Anand Reddy
Member
8 Points
67 Posts
How to determine the string is in base64 format
Nov 27, 2012 11:25 AM|LINK
Hi,
I'm encrypted the textbox value to base64 format and saving it to a table.
How to check the column value is encrypted or not?
Thanks & regards,
Anand
chandrasheka...
Star
10258 Points
1760 Posts
Re: How to determine the string is in base64 format
Nov 27, 2012 12:28 PM|LINK
Hi
Refer the following link for an idea on how to handle whether the value is encrypted or not.
http://social.msdn.microsoft.com/Forums/en/netfxbcl/thread/b29f7fec-cdb7-4756-b7c9-b0edd374f4c9
Please try the answer for the post and finally Don't forget to click “Mark as Answer” on the post that helped you.
Neodynamic
Participant
1008 Points
289 Posts
Re: How to determine the string is in base64 format
Nov 28, 2012 10:18 AM|LINK
Are you just converting a TextBox value to Base64? If so, then I'd not call it "encrypted"
To check if a string is a valid Base64 you can use this:
try { byte[] tmp = Convert.FromBase64String(s); return true; } catch { // It's not a base64 encoded string return false; }