| | |
Encrypting a .txt file through VB6
![]() |
•
•
Join Date: Dec 2008
Posts: 1
Reputation:
Solved Threads: 0
Hello,
I have a fairly basic knowlegde of Visual basic,
I am trying to create a form to create a username and password which is then saved in a .txt file, the problem being that anyone can read it.
Is there any way that it can be simply encrypted before being saved into the .txt file. i ahve created a module for the creation of a username and password. the Creation works and is saved correctly, i just don't undersand the correct code for it to be encrypted before it is saved
Here is the code so far:
Thanks in advance!
Ian.
I have a fairly basic knowlegde of Visual basic,
I am trying to create a form to create a username and password which is then saved in a .txt file, the problem being that anyone can read it.
Is there any way that it can be simply encrypted before being saved into the .txt file. i ahve created a module for the creation of a username and password. the Creation works and is saved correctly, i just don't undersand the correct code for it to be encrypted before it is saved
Here is the code so far:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Public Sub CreateUser() On Error GoTo A Dim User, Pass As String User = FrmLogin.txtUsernameCreate.Text Pass = FrmLogin.txtPasswordCreate.Text Open App.Path & "/Users/" & User & ".txt" For Output As #1 Print #1, User Print #1, Pass Close #1 MsgBox "Your Account Has Heen Created Successfully", vbInformation, "Congratulations" FrmLogin.txtUsernameCreate.Text = "" FrmLogin.txtPasswordCreate.Text = "" Exit Sub A: MsgBox " Account Cannot Be Created", vbCritical, "Error" End Sub Public Sub ChangeASC() Dim ASC As String ASC = FrmLogin.txtPasswordCreate.Text For k = 1 To Len(ASC) ASC(k) = ASC(k) + (2) Output = App.Path & "/Users/" & User & ".txt" End Sub
Thanks in advance!
Ian.
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Trying to check a remote connection!
- Next Thread: Data Environment plus SQL Parameter in VB
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






