iOS port of IOS7Crypt