Tip

Create hashed password using LotusScript and API call

This little bit of code calls one of the more than 2500 undocumented nnotes.dll functions that Lotus refuses to give appropriate information on. Anyway, the purpose of this code is an easy way to encrypt your passwords by calling this function. Hope someone has some fun with it. All written in LS.


Declarations:
Type KFM_PASSWORD
	xType As Integer
	hPword As String * 48
End Type

Declare Sub SECKFMCreatePassword Lib "nnotes.dll" (Byval pString As String, x As KFM_PASSWORD)

Sub Initialize
	Dim pA As String
	Dim z As KFM_PASSWORD 
	pA = Inputbox("Enter Password")
	Call SECKFMCreatePassword(pA,z)
	Msgbox z.hPword,0+64,"Password Encoded"
End Sub

And that is it..simple...

This was first published in September 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.