How do I programatically encrypt a flat file using Visual Basic? Then code a GUI to Decrypt the file. The user would
then be asked to enter the name of the encrypted file then press a button to Decrypt the file?
FYI: The file will be Encrypted on the server. From time
to time the Encryped file will be sent to a user who will
have the Decryption program to reverse the process so
they can load the file to an Access or SQL database.
Here's the code that I am currently using to format and
write the text file. Thanks a bunch for your help.
'-- FORMAT DATA STRING
MessageText = Request("name" & "|"
MessageText = MessageText & Request("ssn" & "|"
MessageText = MessageText & Request("housing_plans" & "|"
MessageText = MessageText & Request("custody" & "|"
MessageText = MessageText & Request("custody_ages" & "|"
'-- SEND DATA TO FILE
dim filesys, filetxt
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set filesys = CreateObject("Scripting.FileSystemObject"
Set filetxt = filesys.OpenTextFile (Server.MapPath "export/gradapp.txt", ForAppending, True)
filetxt.WriteLine(MessageText)
filetxt.Close
then be asked to enter the name of the encrypted file then press a button to Decrypt the file?
FYI: The file will be Encrypted on the server. From time
to time the Encryped file will be sent to a user who will
have the Decryption program to reverse the process so
they can load the file to an Access or SQL database.
Here's the code that I am currently using to format and
write the text file. Thanks a bunch for your help.
'-- FORMAT DATA STRING
MessageText = Request("name" & "|"
MessageText = MessageText & Request("ssn" & "|"
MessageText = MessageText & Request("housing_plans" & "|"
MessageText = MessageText & Request("custody" & "|"
MessageText = MessageText & Request("custody_ages" & "|"
'-- SEND DATA TO FILE
dim filesys, filetxt
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set filesys = CreateObject("Scripting.FileSystemObject"
Set filetxt = filesys.OpenTextFile (Server.MapPath "export/gradapp.txt", ForAppending, True)
filetxt.WriteLine(MessageText)
filetxt.Close