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, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
November
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
Our Sponsors


Latest Postings
Useful PHP Functions & Code
by Gizmo
11/13/08 09:25 PM
UBBCode Tags
by Gizmo
11/13/08 09:25 PM
Bitten by my ISP
by ZER0_DECEPTION
10/25/08 01:56 AM
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
Our Sponsors
Sponsor Our Sponsors

Sponsor Advertisements help keep UGN Security Online.



Support UGN Security by Purchasing our Sponsors Products.
Top  
#17847 - 02/28/03 08:01 AM Re: Password prog.
Gizmo Administrator Online   shocked
Community Owner
*****

Registered: 02/28/02
Posts: 6952
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, 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 idéa. Best one.
_________________________
If you think you know something completely, you probably don't know enough.

Top



Featured Member
Registered: 11/17/07
Posts: 10
Forum Stats
6884 Members
44 Forums
10925 Topics
45702 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6952
UGN Security 3980
§intå× 3252
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
c0de M80, Bob, wir3dfr3ak, 2321, Amir-Turk
6883 Registered Users
Who's Online
0 registered (), 9 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Required Reading Update...
by Gizmo
11/07/08 11:36 AM


Donate
  Get Firefox!
Get FireFox!