Results 1 to 2 of 2

Thread: Easierst way to auto generate passwords

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    Easierst way to auto generate passwords

    In my asp.net app, I have a class that is responsible for authentication.. it is also responsible for generating passwords (figured it was logical to have that class do that)

    ANyway, what is the best way in vb.net to generate an alphanumeric string of 8 random numbers and letters?

    I figured I will random 8 integers and then convert them to chars (in a certain interval of course), but how can I convert them into a string? I am used to C++ with chars and char*... can't make it out in vb.net what is the best method to do the conversion itself from int to char? is there a .net method?

    kind regards
    Henrik

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    Is it as simple as using the chr() function?

    chr(65) = 'A'

    asc('A') = 65
    This world is not my home. I'm just passing through.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width