Bad news looks like PASSWORD_BCRYPT is hashing and not really encrypting. This means that once hashed the value can’t be de-hashed.
Basically this fieldtype is not fit to purpose. It can only be used for authentication using Cockpit as ISP. Scenario:
- you save the password and it gets stored hashed
- customer send password, the same gets first hashed and then verified against what stored (comparing the 2 hashed values and not the real password)
This because hashing is a one-way operation.
In my scenario I need to store external ISP values and what I want to retrive is either the real password value in plain text or the hashed value which i can’t use. I think I need to use a text field and store an custom encrypted value.