added a crypto helper