HashData Method
Description
Used to encrypt password data for secure storage in the Microsoft Office Project Server 2003 database, using the Project Server security object.
Syntax
Function HashData( _
ByVal bstrData As String _
) As Long
Parameters
Parameter | Description |
---|---|
bstrData |
Required String. The data that is to be encrypted. |
Return Value
The HashData method returns the encrypted String value.
Example
The following example is for Microsoft Visual Basic 6.0.
Dim sResult as String
Set oSec = CreateObject("PjSvrSecurity.PjSvrSecurity")
oSec.SetDBConnection "ProjectServer"
sResult = oSec.HashData("password")
Set oSec = Nothing