reusable secure library component for IOS