Login to TechLifeForum X
Board Index Go to Reboot.Pro
  • Account Login
  • Register
TechLifeForum
  • Home
  • Members
  • Awards
  • Rules
  • Help
  • Donate
  • Live IRC
TechLifeForum / Programming and Development / .Net Framework Programming v
« Previous 1 ... 16 17 18 19 20 ... 46 Next »
/ Problem: Analyze types of force Password[Advanced Search]
Reply to thread
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Problem: Analyze types of force Password

07-16-2012, 10:48 AM (This post was last modified: 07-16-2012 10:51 AM by Morpheus.)
Post: #1
Morpheus Offline
Member
**
Posts: 190
Joined: Sep 2011
Reputation: 5
First 25Coding Award
Problem: Analyze types of force Password
I have this source code to prevent the size of the password does not exceed the value [4 and 255] in a control NumericUpDown.
Code: (SELECT ALL CODE)
Private Sub Size_Pass_KeyPress(sender As Object, e As System.Windows.Forms.KeyPressEventArgs) Handles Size_Pass.KeyPress
           If e.KeyChar <> ControlChars.Back Then 'AndAlso e.KeyChar <> "-"c
            '---------------------------
            e.Handled = Not Char.IsNumber(e.KeyChar)
            If Not e.Handled Then
                Dim num As Integer = Integer.Parse(String.Format("{0}{1}", If(Size_Pass.Text = String.Empty, "", Size_Pass.Text), e.KeyChar.ToString()))
                If num <= 0 OrElse num > 255 Then
                    e.Handled = True
                End If
            End If
        End If
    End Sub
But adding this source to inform the quality of the password, when we write what size.
The problem in controlling the write does not indicate that quality.
Also control has difficulty accepting any value.
Code: (SELECT ALL CODE)
'Size_Pass :  [4 - 255] Caracteres
        Select Size_Pass_Palavra.Value
                Case 4
                    Me.Label3.ForeColor = Color.DarkRed
                    Me.Label3.Text = "Low"
                Case 5 To 64
                    Me.Label3.ForeColor = Color.OrangeRed
                    Me.Label3.Text = "Normal"
                Case 65 To 127
                    Me.Label3.ForeColor = Color.ForestGreen
                    Me.Label3.Text = "Optimized"
                Case 128 To 255
                    Me.Label3.ForeColor = Color.MidnightBlue
                    Me.Label3.Text = "High"
            End Select
Adding :
Code: (SELECT ALL CODE)
Private Sub Size_Pass_KeyPress(sender As Object, e As System.Windows.Forms.KeyPressEventArgs) Handles Size_Pass.KeyPress
    'Size_Pass :  [4 - 255] Caracteres
        Select Size_Pass_Palavra.Value
                Case 4
                    Me.Label3.ForeColor = Color.DarkRed
                    Me.Label3.Text = "Low"
                Case 5 To 64
                    Me.Label3.ForeColor = Color.OrangeRed
                    Me.Label3.Text = "Normal"
                Case 65 To 127
                    Me.Label3.ForeColor = Color.ForestGreen
                    Me.Label3.Text = "Optimized"
                Case 128 To 255
                    Me.Label3.ForeColor = Color.MidnightBlue
                    Me.Label3.Text = "High"
            End Select    
    '---------------------------  
        If e.KeyChar <> ControlChars.Back Then 'AndAlso e.KeyChar <> "-"c
            e.Handled = Not Char.IsNumber(e.KeyChar)
            If Not e.Handled Then
                Dim num As Integer = Integer.Parse(String.Format("{0}{1}", If(Size_Pass.Text = String.Empty, "", Size_Pass.Text), e.KeyChar.ToString()))
                If num <= 0 OrElse num > 255 Then
                    e.Handled = True
                End If
            End If
        End If
    End Sub
Thank you for your attention.



Great coders aren't born. They're compiled and released.
Expert coders do not need a keyboard. They just throw magnets at the RAM chips.
Find
Reply
07-16-2012, 02:40 PM
Post: #2
KoBE Offline
¯\_(ツ)_/¯
*******
Administrators
Posts: 4,197
Joined: Jun 2011
Reputation: 47
RE: Problem: Analyze types of force Password
It is very hard to follow the logic and understand what you're trying to do. Can you please submit a screenshot or some sort of demo application with the controls so we can get an idea?

-> TechLifeForum on Facebook<- 
-> TechLifeForum on YouTube<-
-> TechLifeForum on Twitter<-

Tech.Reboot.Pro
WWW Find
Reply
07-16-2012, 05:51 PM
Post: #3
RDCA Offline
Senior Member
***
Posts: 278
Joined: Jun 2011
Reputation: 9
Youtube Video Award
RE: Problem: Analyze types of force Password
Code: (SELECT ALL CODE)
Private Sub Size_Pass_KeyPress(sender As Object, e As System.Windows.Forms.KeyPressEventArgs) Handles Size_Pass.KeyPress
           If e.KeyChar <> ControlChars.Back Then 'AndAlso e.KeyChar <> "-"c
            '---------------------------
            e.Handled = Not Char.IsNumber(e.KeyChar)
            If Not e.Handled Then
                Dim num As Integer = Integer.Parse(String.Format("{0}{1}", If(Size_Pass.Text = String.Empty, "", Size_Pass.Text), e.KeyChar.ToString()))
                If num < 4 OrElse num > 255 Then
                    e.Handled = True
                Else
                      Select num
                Case 4
                    Me.Label3.ForeColor = Color.DarkRed
                    Me.Label3.Text = "Low"
                Case 5 To 64
                    Me.Label3.ForeColor = Color.OrangeRed
                    Me.Label3.Text = "Normal"
                Case 65 To 127
                    Me.Label3.ForeColor = Color.ForestGreen
                    Me.Label3.Text = "Optimized"
                Case 128 To 255
                    Me.Label3.ForeColor = Color.MidnightBlue
                    Me.Label3.Text = "High"
            End Select
            End If
        End If
    End Sub


Not sure if I misunderstood something, but here is what I got out of it.
Find
Reply
07-17-2012, 02:59 AM (This post was last modified: 07-17-2012 03:06 AM by Morpheus.)
Post: #4
Morpheus Offline
Member
**
Posts: 190
Joined: Sep 2011
Reputation: 5
First 25Coding Award
RE: Problem: Analyze types of force Password





Link : http://youtu.be/XLCOUPtfNo0



Great coders aren't born. They're compiled and released.
Expert coders do not need a keyboard. They just throw magnets at the RAM chips.
Find
Reply
07-17-2012, 09:20 PM
Post: #5
AceInfinity Offline
∞ IҊϜIɴITϵ ☭
*****
Microsoft MVP
Posts: 8,696
Joined: Jun 2011
Reputation: 61
RE: Problem: Analyze types of force Password
I need to show you this:



However I'm on the same boat as KoBE here, the logic behind your code is hard to follow, and when that happens I always then rely on the person's description of what they want to do, but it's not clicking in my brain for me yet, i'm still fairly confused here... :(

I see the lengths as part of it, but what about the checkboxes? Where do they play a role in determining the strength of the password, because you can have a password "a" or a password "aaaaaaaa", but for the same length, even "a" is not as strong as a password like this if they allowed symbols "╓". Just as an example.



Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer


Development Site: aceinfinity.net
WWW Find
Reply
07-19-2012, 03:37 PM
Post: #6
Morpheus Offline
Member
**
Posts: 190
Joined: Sep 2011
Reputation: 5
First 25Coding Award
RE: Problem: Analyze types of force Password
Hello Ace.
Thank you for your dedication and patience.
Currently, the code is a bit confusing, but it works.
As for the strength of the password and evaluation have no more ideas.
Let me give an example
http://depositfiles.com/files/xftsmav88



Great coders aren't born. They're compiled and released.
Expert coders do not need a keyboard. They just throw magnets at the RAM chips.
Find
Reply
Reply to thread


Possibly Related Threads...

Thread: Author Replies: Views: Last Post
   Exit button problem william7 9 364 05-12-2013 10:11 PM
Last Post: AceInfinity
  Subtracting in a database problem william7 4 110 05-03-2013 07:56 PM
Last Post: william7
   Database problem william7 3 129 05-01-2013 04:46 PM
Last Post: william7
   Concatenation to list box problem william7 9 250 04-07-2013 05:52 PM
Last Post: AceInfinity
   Anomaly problem william7 8 212 04-07-2013 05:34 AM
Last Post: AceInfinity

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:


Users browsing this thread
1 Guest(s)
Youtube Facebook Twitter Digg
Return to Top
All content © copyright TechLifeForum
Powered By MyBB, © 2002-2013 MyBB Group
Designed by ThemeFreak
Mobile Version