Small library to encapsulate data in an encrypted structure