I did the following:
1. created a container field with EDT encryptionField called password in a table called Table1
2. edited the update and insert methods of the table
public void update()
{
Global::handleEncryptedTablePreUpdate(this);
super();
Global::handleEncryptedTablePostUpdate(this);
}
public void insert()
{
Global::handleEncryptedTablePreInsert(this);
super();
Global::handleEncryptedTablePostInsert(this);
}
3. Added this method to the table
public edit Password passwordEdit(boolean _set, Password value)
{
return Global::editEncryptedField(this, value, fieldNum(Table1,password), _set);
}
4. In the form, I made password style = yes
Now i want to decrypt this value by code and use it somewhere. In the sql dataBase the value of the field is Hexadecimal and when i write info(con2str(password)) i get alot of numbers.
How to decrypt the value?