Encrypt and Decrypt any text.
Version: Gold
Namespace:
TornadoVersion: Gold
Assembly: Tornado (in Tornado.dll) Version: 12.6.0.9 (1.0.0.0)
Syntax
| C# |
|---|
public bool ASPdbConvert( string action, string Infile, string Outfile, string Key ) |
| Visual Basic (Declaration) |
|---|
Public Function ASPdbConvert ( _ action As String, _ Infile As String, _ Outfile As String, _ Key As String _ ) As Boolean |
Parameters
- action
- Type: System..::.String
"Encrypt or En or Decrypt or De
- Infile
- Type: System..::.String
Input file path. Encrypted or Original file.
- Outfile
- Type: System..::.String
Output file path. Encrypted or Original file.
- Key
- Type: System..::.String
Case sensitive Encryption Key. Key will be trimmed before use.
Return Value
True | False
Remarks
- If Key is blank then internal system key is used for both directions.
- User Key is case sensitive and will be trimmed and is required in both directions.
- This function is primary used to encrypt Remote URL files.
Examples
<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>