this (ugly) bit of code is what we use to decrypt files and strings in chef