How to store credit card info on iphone?

前端 未结 4 1849
情话喂你
情话喂你 2021-01-13 09:53

I have requirement to store credit card number in iPhone app. How to store the data secure manner. I have looked at keychain. Apart from it, is there anything i can use.

4条回答
  •  北海茫月
    2021-01-13 10:35

    This question as stated is difficult to answer. It is up to author(s) of the requirement to determine the level of security needed. They may wish to get some legal advice about what, if any, liability may be incurred for leaking the data.

    Once you know the appropriate level of protection, then you can start evaluating solutions. Keychain is good, but there are quite a few encryption options available.

    Questions you may want to get answers to besides how to store the number include:

    • What authentication will be needed to expose the number?
    • What is the expected lifecycle of the exposed number?
      • How long can the number stay exposed?
      • How will the number be purged from memory?
    • How can the exposed number be used?
      • Can the number ever be displayed to the user?
      • Will you allow the number to be copied to the clipboard?

    If you want to be serious about protecting information (any information), you need to do some serious design work.

提交回复
热议问题