UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
December
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Sponsored Links
Latest Postings
Latest Reviews
Topic Options
Rate This Topic
#17846 - 02/28/03 07:15 AM Password prog.
Nagachaak Offline
Junior Member

Registered: 12/18/02
Posts: 89
Loc: scandinavia
sitting here trying to figure how to make the program i just wrote to generate a new password every time it starts. the idea is that i will be able to get the new generated pass from a file somewhere.

1.how do i get the program to generate a pass new pass every time it runs? i know i could probably use a number generator but i also want other chars.
2. how do i get the program to store the new pass in a file.

i'm really new on this so save the flames to someone how needs them.
_________________________
I am beyond God, I am human. I am the razorblade on the communion vein.

Top
Sponsored Links
      
#17847 - 02/28/03 08:01 AM Re: Password prog.
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
Why not just make a random password generator? I had neo write me one once, you could specify the character sets (english characters, extended characters, etc) for however long you needed it (could generate a random 150 character password if i wanted to).
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
#17848 - 02/28/03 08:30 AM Re: Password prog.
Nagachaak Offline
Junior Member

Registered: 12/18/02
Posts: 89
Loc: scandinavia
thanks gizmo, i guess i have figured how to do the generator.
the thing is i want it to be logged in a file somwhere.
_________________________
I am beyond God, I am human. I am the razorblade on the communion vein.

Top
#17849 - 02/28/03 12:37 PM Re: Password prog.
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
Private Sub Form_Load()
Dim Chars As String, PassLength As Long
Randomize

Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
PassLength = 90

For X = 1 To PassLength
Password = Password & Mid(Chars, ((Rnd() * (Len(Chars) - 1)) \ 1) + 1, 1)
Next

Open App.Path & "\passwords.txt" For Append As #1
Print #1, Password
Close #1
End Sub
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#17850 - 03/02/03 03:25 PM Re: Password prog.
Nagachaak Offline
Junior Member

Registered: 12/18/02
Posts: 89
Loc: scandinavia
thanks but i'll try something i understand fisrt...then i'll get back to this.
_________________________
I am beyond God, I am human. I am the razorblade on the communion vein.

Top
#17851 - 03/03/03 10:01 AM Re: Password prog.
Nagachaak Offline
Junior Member

Registered: 12/18/02
Posts: 89
Loc: scandinavia
syntax error sr. expected end of satement "/1)"<--
heh, kewl
_________________________
I am beyond God, I am human. I am the razorblade on the communion vein.

Top
#17852 - 03/03/03 10:47 AM Re: Password prog.
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
Use Visual Basic 6.0. Copy the code straight into a new project all by itself. It works without error.

If whatever you're using (which can't be VB6.0) doesn't like my integer divide operator, then use this instead:

change this:

Password = Password & Mid(Chars, ((Rnd() * (Len(Chars) - 1)) \ 1) + 1, 1)

to this:

Password = Password & Mid(Chars, Int(Rnd() * (Len(Chars) - 1)) + 1, 1)
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#17853 - 03/03/03 03:48 PM Re: Password prog.
Nagachaak Offline
Junior Member

Registered: 12/18/02
Posts: 89
Loc: scandinavia
i use VB 6.0. promise. but hey i fixed it just like your last example.=)

thanks again sr
_________________________
I am beyond God, I am human. I am the razorblade on the communion vein.

Top
#17854 - 04/16/03 03:07 PM Re: Password prog.
Dartur Offline
UGN Newbie

Registered: 03/03/02
Posts: 23
Loc: Sweden
Use your first ida. Best one.
_________________________
If you think you know something completely, you probably don't know enough.

Top

Featured Member
Registered: 08/22/14
Posts: 1
Forum Stats
2152 Members
46 Forums
36195 Topics
71365 Posts

Max Online: 1567 @ 04/25/10 05:20 AM
Top Posters
UGN Security 29356
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
cdefgh368568, HushHush, golqm, Tim050, Gecko666
2151 Registered Users
Who's Online
0 registered (), 392 Guests and 342 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!