P
Priya Bange
Guest
Dear Experts,
I have data table that contains sensitive information and before loading to the DB. I need to encrypt certain those columns. We have a powershell version which does something like below. Do we have something similar for C#.
IF(
($sql_text -match ("[a-zA-Z0-9_\\.]+@[a-zA-Z0-9\\.]+")) {
$someString_sql_text = "$sql_text"
$sql_text = $someString_sql_text | ConvertTo-SecureString -AsPlainText -Force | ConvertFrom-SecureString -Key $key
}
The match part I think simply get replaced with contains for C#.
Please assist.
Continue reading...
I have data table that contains sensitive information and before loading to the DB. I need to encrypt certain those columns. We have a powershell version which does something like below. Do we have something similar for C#.
IF(
($sql_text -match ("[a-zA-Z0-9_\\.]+@[a-zA-Z0-9\\.]+")) {
$someString_sql_text = "$sql_text"
$sql_text = $someString_sql_text | ConvertTo-SecureString -AsPlainText -Force | ConvertFrom-SecureString -Key $key
}
The match part I think simply get replaced with contains for C#.
Please assist.
Continue reading...