Hi,
So i have this code on a certain table, to put a password field.
///
///
///
public void insert()
{
Global::handleEncryptedTablePreInsert(this);
super();
Global::handleEncryptedTablePostInsert(this);
}
///
///
///
public void update()
{
Global::handleEncryptedTablePreUpdate(this);
super();
Global::handleEncryptedTablePostUpdate(this);
}
///
///
///
public edit Password passwordEdit(boolean _set, Password value)
{
if(_set)
{
this.ClientSecret = WinAPIServer::cryptProtectData(str2cryptoblob(value));
}
if(this.ClientSecret != conNull())
{
if(_set)
{
value = strRFix(value, strLen(value), 'X');
}
else
{
value = 'XXXXXXXXX';
}
}
return value;
}
and in a certain class, i'm trying to get the password value by doing this
Password clientSecret = cryptoblob2str(WinAPIServer::cryptUnProtectData(table.ClientSecret));
so i'm getting this BP warning on this line of code above?
what should i do? how to solve it?
Also i think after solving it i will get an error on the table method where i used cryptProtectData in the password edit method as shown above.
so how to solve it for both?