Support

Account

Home Forums General Issues Hashing ACF post data

Helping

Hashing ACF post data

  • I working with some sensitive data in user profiles (mostly financial) and am having some difficulty in storing the data securely.

    Ideally, what I’d like to do is hash the data upon post, and then decrypt it on the front end.

    Thus far I have managed to get it to die() and print out the array using the acf/save_post hook, but it just returns null if I try to hash that. Additionally, I’m not really sure how I’d go about actually getting this into the database?

    Any help would be appreciated.

  • Hashes cannot be “decrypted”.

    You would need to use something that allows for encryption and decryption.

    You can use acf/update_field and acf/load_value filters to alter the values before it is saved and then change it back when it is loaded.

    My only real advice past this is that the data should not be stored if the database in not secure and you should be looking into hosting that provides proper security dependend on what you need to be complaint with like HIPAA or PCI.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Hashing ACF post data’ is closed to new replies.