Results 1 to 11 of 11

Thread: Passsssssword!!!!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    India
    Posts
    9

    Question

    Can any one tell me how to decode a characters in password field in to readable characters?

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    81
    What password field?
    Some cause happiness wherever they go; others, whenever they go.

  3. #3
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335
    Here you go:
    Code:
    'Let's say you have 2 textboxes.
    'One is txtPass and the second is txtSolve.
    'txtPass is the text wich the password is entered.
    'txtSolve is the textbox which will show the password.
    Private Sub txtPass_Change()
    txtSolve.Text = txtPass.Text
    End Sub
    It's that simple!
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

  4. #4
    Guest
    Are you referring to the PasswordChar property?

    And changing it back to readable text?

    Code:
    Text1.PasswordChar = ""

  5. #5
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    i think he means to like decode passwords in another program.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  6. #6
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    You could use the SendMessage api function to set the password char to 0.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  7. #7
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    You sure can use SendMessage API to get the text from the password textbox, but bare in mind that it works only in Win95 (that was a Microsoft bug).

  8. #8

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    India
    Posts
    9

    Talking Thanx Guys

    SendMessage API works only in '95. but i need a way to figure it out in NT and '98. U guys have any ideas.

  9. #9

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    India
    Posts
    9

    Talking Thanx Guys

    SendMessage API works only in '95. but i need a way to figure it out in NT and '98. U guys have any ideas.

  10. #10
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    What do you mean SendMessage works only in Win95. I have Win98 And this code works fine. (it doesn't work only in WinNt) It gets the pass characters.
    Code:
    Public Const WM_GETTEXTLENGTH = &HE
    Public Const WM_GETTEXT = &HD
    Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    
    Dim tl as Long
    Dim t as String
    tl = SendMessage(hWndOfPassWindow, WM_GETTEXTLENGTH, 0, 0)
    tl = tl + 1
    t = Space(tl)
    SendMessage hWndOfPassWindow, WM_GETTEXT, tl, ByVal t
    Text1.Text  = t
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  11. #11

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    India
    Posts
    9

    Talking

    Thanx for ur correspondence

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