Hunt.encrypt and Hunt.decrypt functions