Is CCUserDefault secure at all?

  • barabasandras1
    Likes 0

    Problem Description

    What if I want to store sensible data? Or something like “coins” or “crystals” you can buy from store. Can people just modify these values somehow on their phones?

  • Sonar Systems admin
    Likes 1


    This reply has been verified.
  • barabasandras1
    Likes 0

    Good news. So basically this is the right way to store sensitive data BUT encryption is a need in this case. Am I right (please just say I don’t need to use anything such as soom.la or sqlite and I can just stick to userdefault!!!)

  • Sonar Systems admin
    Likes 1

    Here is a good discussion on encryption inside Cocos2d-x http://discuss.cocos2d-x.org/t/suggest-good-encrypting-decrypting-algorithms/17671/17 

  • barabasandras1
    Likes 0

    Thank you, I really need to look this up.

    And what is your personal opinion about storing datas like game currency values, etc.? What method would you use?

  • Sonar Systems admin
    Likes 1

    Online would always be the best but then the user would have to be connected to the internet or atleast have a single connection when the game loads up.

     

    Generally store it in UserDefault but just encrypt it.


    This reply has been verified.
  • barabasandras1
    Likes 0

    Thanks! 


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    Your welcome :D

Login to reply