VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



An easy function that will encrypt a password when a user enters text in a textbox they don't wish

by Brandon (46 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 19th April 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

An easy function that will encrypt a password when a user enters text in a textbox they don't wish to have others see.

Rate An easy function that will encrypt a password when a user enters text in a textbox they don't wish




Function Encryption(EncryptCode As String)
EncryptCode = "*"
    txtPassWord.PasswordChar = EncryptCode
End Function

'make sure a textbox named txtPassword is on your form and put this code
'below in its text change event

Private Sub txtPassWord_Change()
Dim Password As String
    Encryption (Password)
End Sub



Download this snippet    Add to My Saved Code

An easy function that will encrypt a password when a user enters text in a textbox they don't wish Comments

No comments have been posted about An easy function that will encrypt a password when a user enters text in a textbox they don't wish . Why not be the first to post a comment about An easy function that will encrypt a password when a user enters text in a textbox they don't wish .

Post your comment

Subject:
Message:
0/1000 characters