Password rememberer
Ok I have 3 textboxes named "Login" , "Password" and "Website".
Basically when you enter the three details, I have a button which I press which saves it to a text file named Passwords.txt
What code am I looking at for this?
Really stuck any help would be nice :)
Regards
George
4 1133
password rememberer
ok i have 3 text boxes named "Login" , "Password" and "Website"
basically when you enter the three details , i have a button which i press which saves it to a text file named Passwords.txt
wot code am i looking at for this?
really stuck any help would be nice :)
regards
george
Are you looking for an encryption solution?
password rememberer
ok i have 3 text boxes named "Login" , "Password" and "Website"
basically when you enter the three details , i have a button which i press which saves it to a text file named Passwords.txt
wot code am i looking at for this?
really stuck any help would be nice :)
regards
george
an encryption routine (courtesy of Andreas J”nsson): -
Public Function RC4(ByVal Expression As String, ByVal Password As String) As String
-
On Error Resume Next
-
Dim RB(0 To 255) As Integer, X As Long, Y As Long, Z As Long, Key() As Byte, ByteArray() As Byte, Temp As Byte
-
If Len(Password) = 0 Then
-
Exit Function
-
End If
-
If Len(Expression) = 0 Then
-
Exit Function
-
End If
-
If Len(Password) > 256 Then
-
Key() = StrConv(Left$(Password, 256), vbFromUnicode)
-
Else
-
Key() = StrConv(Password, vbFromUnicode)
-
End If
-
For X = 0 To 255
-
RB(X) = X
-
Next X
-
X = 0
-
Y = 0
-
Z = 0
-
For X = 0 To 255
-
Y = (Y + RB(X) + Key(X Mod Len(Password))) Mod 256
-
Temp = RB(X)
-
RB(X) = RB(Y)
-
RB(Y) = Temp
-
Next X
-
X = 0
-
Y = 0
-
Z = 0
-
ByteArray() = StrConv(Expression, vbFromUnicode)
-
For X = 0 To Len(Expression)
-
Y = (Y + 1) Mod 256
-
Z = (Z + RB(Y)) Mod 256
-
Temp = RB(Y)
-
RB(Y) = RB(Z)
-
RB(Z) = Temp
-
ByteArray(X) = ByteArray(X) Xor (RB((RB(Y) + RB(Z)) Mod 256))
-
Next X
-
RC4 = StrConv(ByteArray, vbUnicode)
-
End Function
-
no i want to be able to type say
dsfsjfjsjjfs in User Box
fjdjskfjds in password box
www.thescripts.com in website box
then i want to have a button which says "save" which then saves the 3 above pieces of text into a notepad file.
if u understand what i mean?
So like I said I want to be able to type a login, password and website in the 3 textboxes then click a button which saves it into my .txt file.
Just make any required adjustments to do this. I am really confused with this so any help would be appreciated. - Public Class Form1
-
Dim Login As String
-
Dim Password As String
-
Dim Website As String
-
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
-
-
End Sub
-
-
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
-
-
End Sub
-
-
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
-
-
System.IO.File.WriteAllText("Password.txt", "C:\Documents and Settings\Admin\My Documents\Password.txt")
-
-
End Sub
-
-
Private Sub AddNewLoginToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddNewLoginToolStripMenuItem.Click
-
-
End Sub
-
End Class
Sign in to post your reply or Sign up for a free account.
Similar topics
by: John Victor |
last post by:
In my mysql database, I've stored all the passwords using the PASSWORD()
function. Now I'm running a test and need to compare the password in my php
document to that saved in the database. I used...
|
by: Jill Elaine |
last post by:
I am building an Access 2002 frontend with linked tables to an
encrypted Paradox 7 database. When I first create these linked tables,
I'm asked for the password to the encrypted Paradox database,...
|
by: Fabrizio |
last post by:
(Sorry for the crosspost, but I really don't know which is the right
newsgroup!)
Hi all,
I try to change the password to a user that as to change the password at
first logon:
try
{
|
by: Andre Ranieri |
last post by:
I'm trying to create a login page for customers to log into our corporate
website, our presidents naturally wants the user and password fields to
populate from a cookie so the customer doesn't have...
|
by: scorpion53061 |
last post by:
is it possible to set the database password that you can set in access for a
database from a vb.net application?
|
by: David Garamond |
last post by:
I read that the password hash in pg_shadow is salted with username. Is
this still the case? If so, since probably 99% of all PostgreSQL has
"postgres" as the superuser name, wouldn't it be better...
|
by: Katash |
last post by:
Hello,
I am new to PHP and am working on a login system for my site,
currently supplied passwords are passed to MySQL and stored as md5 hashes,
my question is :- seeing as md5 is 1 way only what...
|
by: julianmoors |
last post by:
Hey,
Currently I'm writing a VB.NET/1.1 app and I need to mask the input for
the password field. Does anyone know how to do this in VB? I've seen a
C# example, but wouldn't know how to convert...
|
by: DarthPeePee |
last post by:
Hello everyone.
I am working on a Password Strength Meter and I am running into 1 problem that I would like to fix.
When pressing the "Clear Password & Try Again" button, the password clears...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |