Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. What is the best approach to generate random Password for user in asp.net 2.0

What is the best approach to generate random Password for user in asp.net 2.0

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netlounge
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rameez Raja
    wrote on last edited by
    #1

    What are the best approaches to generate random password for User ? Is their any class available in .net 2.0 ? which approach would be best ? and proffessional way to do this? please direct me in right direction . Best Regards Rameez

    C K L 3 Replies Last reply
    0
    • R Rameez Raja

      What are the best approaches to generate random password for User ? Is their any class available in .net 2.0 ? which approach would be best ? and proffessional way to do this? please direct me in right direction . Best Regards Rameez

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Oh, I see. You're retarded. I'm sorry about that. Get one of your minders, the ones who help you go to the toilet, to read the answer I gave you last time and explain it to you. There is no other answer. There's no class available, and no other way to do it.

      Christian Graus Driven to the arms of OSX by Vista.

      R 1 Reply Last reply
      0
      • C Christian Graus

        Oh, I see. You're retarded. I'm sorry about that. Get one of your minders, the ones who help you go to the toilet, to read the answer I gave you last time and explain it to you. There is no other answer. There's no class available, and no other way to do it.

        Christian Graus Driven to the arms of OSX by Vista.

        R Offline
        R Offline
        Rameez Raja
        wrote on last edited by
        #3

        Thank you very much for good answer . iam new to .net thatswhy i want to confirm from those who has idea of that. else thanks for answering . Again thanks :rose: best regards Rameez

        C 1 Reply Last reply
        0
        • R Rameez Raja

          Thank you very much for good answer . iam new to .net thatswhy i want to confirm from those who has idea of that. else thanks for answering . Again thanks :rose: best regards Rameez

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          If you're new to .NET, why are you writing a password system for someone ? Oh, because you're cheap. I don't mind that outsourcing happens, but I am offended at how many completely unqualified people are taking part in it.

          Christian Graus Driven to the arms of OSX by Vista.

          1 Reply Last reply
          0
          • R Rameez Raja

            What are the best approaches to generate random password for User ? Is their any class available in .net 2.0 ? which approach would be best ? and proffessional way to do this? please direct me in right direction . Best Regards Rameez

            K Offline
            K Offline
            knbinoj58
            wrote on last edited by
            #5

            You can use Guid to generate random password. Find it on msdn...

            1 Reply Last reply
            0
            • R Rameez Raja

              What are the best approaches to generate random password for User ? Is their any class available in .net 2.0 ? which approach would be best ? and proffessional way to do this? please direct me in right direction . Best Regards Rameez

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              I don't know what is Best, but i can suggest you one which may help you

              Random objRan = new Random();
              int ran1 = objRan.Next(10000000,99999999);
              int ran2 = objRan.Next(1000, 9999);
              string strRandom = ran1.ToString() + ran2.ToString() + DateTime.Now.Millisecond.ToString();

              you can try this or can even generate your own algo for same. I think it will assist you to generate a Random number everytime

              R 1 Reply Last reply
              0
              • L Lost User

                I don't know what is Best, but i can suggest you one which may help you

                Random objRan = new Random();
                int ran1 = objRan.Next(10000000,99999999);
                int ran2 = objRan.Next(1000, 9999);
                string strRandom = ran1.ToString() + ran2.ToString() + DateTime.Now.Millisecond.ToString();

                you can try this or can even generate your own algo for same. I think it will assist you to generate a Random number everytime

                R Offline
                R Offline
                Rameez Raja
                wrote on last edited by
                #7

                Thanks for reply what about Guid (Global Unique ID) class may i use this for genrating random Password.? OR i will use Random object for creating random password ? which one approach is best ? Best Regards Rmaeez

                L 1 Reply Last reply
                0
                • R Rameez Raja

                  Thanks for reply what about Guid (Global Unique ID) class may i use this for genrating random Password.? OR i will use Random object for creating random password ? which one approach is best ? Best Regards Rmaeez

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Hi I suggest you to visit http://aspnet.4guysfromrolla.com/articles/101205-1.aspx and This one describe three different techniques and also evaluate the each one http://geekswithblogs.net/kakaiya/archive/2005/11/27/61273.aspx Regards Aman Bhullar

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups