hashPassword (Session - Java)

Hashes a string value so that it is not recognizable.

Note: This method is new with Release 6.5.

Defined in

Session

Syntax

public String hashPassword(String password)
    throws NotesException

Parameters

String password

The string to be hashed.

Return value

String

The hashed string.

Usage

A field of type "Password" is not secure. Even though it displays as asterisks, its value can be read programmatically or by looking at the field in the Properties box. Use hashPassword to convert such a value to gibberish.

Use verifyPassword to examine a hashed value.

Example