Working on a plugin that uses an api. Need to set a username and password for the API in a user options page. I don't want to store the password in plain text. Yes, I know anything encoded or encrypted can be reversed by the bad guys as easily as by my scripts. But, let's at least make it a bit of a challenge.
All that said, is there a means in the
add_settings_field() function to directly encrypt, or a callback that can be added to the arguments that would enable a quick encrypt? Decrypting on calling the setting is pretty straight forward, but getting it encrypted using the Settings API in WP is the first hurdle.