I wrote a library to handle mixed configuration values by using asymmetric RSA encryption [1]. [1]: https://github.com/jacobgreenleaf/greybox
• Configuration files can be trivially forged (rsa without signing)
• Many configuration files can be trivially decrypted without the key (rsa use on potentially big files)
• Keys can be trivially recovered in multiple ways (global variable, ptrace)
Users might be tricked into using your library despite the fact it offers them no real security except false security.
I recommend placing a warning that it is not intended to be used by anyone at any time.