Tornado API Library - V12.30.08

z.ASPdbConvert Method 

Encrypt and Decrypt any text.

Product Version

Gold
[Visual Basic]
Public Function ASPdbConvert( _
   ByVal action As String, _
   ByVal Infile As String, _
   ByVal Outfile As String, _
   ByVal Key As String _
) As Boolean
[C#]
public bool ASPdbConvert(
   string action,
   string Infile,
   string Outfile,
   string Key
);

Parameters

action
"Encrypt or En or Decrypt or De
Infile
Input file path. Encrypted or Original file.
Outfile
Output file path. Encrypted or Original file.
Key
Case sensitive Encryption Key. Key will be trimmed before use.

Return Value

True | False

Remarks

Example

<script language="VB" runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
  Dim fin As String = "c:\inetpub\wwwroot\tornado\db\sales1.txt"
  Dim fenc As String = "c:\inetpub\wwwroot\tornado\db\sales1.enc"
  Dim fdec As String = "c:\inetpub\wwwroot\tornado\db\sales1.dec"
  Dim Mydb As New Tornado.z
  If (Mydb.ASPdbConvert("en", fin, fenc, "Hello-My-Key")) Then Mydb.ASPdbDisplaySource(fenc)
  If (Mydb.ASPdbConvert("de", fenc, fdec, "Hello-My-Key")) Then Mydb.ASPdbDisplaySource(fdec)
End Sub
</script>

See Also

z Class | Tornado Namespace | dbRemoteURL