The future is now, and has been for quite a while, in fact.
StoreCipher::{en,de}crypt_value_[base64_]typed