Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by xxstefanoxx · Mar 08, 2014 at 08:03 AM · securitycryptography

Security and crypt

Hi, i'm a new unity developer, i've a question for my app security. The first question is, when my app is compiled(apk, ipa) is 100% secure? there is a way to encrypt a string with a pubblic key and sent it to the server(aspnet with ssl) for decript whit private key? this question because i've a an idea for game online where user can win real money. for this reason the data send and received to server must be 100% secure and uncraccable. Thanks

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by suribe · Mar 08, 2014 at 08:14 AM

Security is a broad concept... If what worries you is encrypting your outgoing traffic, then one way would be to use a secure connection (HTTPS) and connect to it from the game using the WWW class. Of course you need to make your server resistant against hacking and DDoS attacks, as security of a system is as strong as its weakest link and if the application makes real money, somebody will try eventually to hack into it.

And truth is, nothing is 100% secure.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image xxstefanoxx · Mar 08, 2014 at 09:20 AM 0
Share

thanks for the reply, so even if I make the server secure, it remains the risk of cracks of ipa or apk and then access the link to the API right?

avatar image suribe · Mar 08, 2014 at 09:53 AM 0
Share

Obtaining the link to your server is actually quite easy; you need only to have some tool that records outgoing URLs for http/https calls. The important thing is to encrypt the traffic in a way that allows both content confidentiality (no eavesdropping, i.e., listening to what you send) and trust (no impersonation, i.e., no sending of fake information by third party applications that are not yours). Of course, this topic far exceeds the Unity Answers. :)

avatar image xxstefanoxx · Mar 08, 2014 at 10:03 AM 0
Share

In fact, my idea is to use public and private key between unity and servers for cifrate response if unity permits, but if you can unpack an build app the public key would be stolen

avatar image Bunny83 · Mar 08, 2014 at 10:23 AM 1
Share

The communication should never be the real problem. The important thing is, rule No1: "Never trust a client". The client is not under your control, never! Strong security can never be implemented on the client.

Also there are two security concerns:

  • A third party attacker tries to intercept the traffic and manipulate the data.

  • The client itself tries to manípulate the data.

Transportation security such as HTTPS only works against the first kind of concerns. You can't do anything (100%) against the second.

While the transport of the data from client to server is more of less secure, what data the client sends is not. No one would try to "hack" into your API. $$anonymous$$ost hackers would simply decompile / alter your app to do what they want.

So all crucial decisions should be made on the server. The client just provides input. Don't tell the client secret information beforehand. For example behind which door is the prize.

You need more defensive program$$anonymous$$g

avatar image Bunny83 · Mar 08, 2014 at 10:34 AM 0
Share

@xxstefanoxx: The point of the public key is that it can be known to the public. With the public key you can encrypt data which can only be decrypted with the private key. This only secures the transportation, not the client system.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Does Unity have any symmetric crypto libraries? 1 Answer

Problem With Saving And Cryptography with AES 1 Answer

using System.Security.Cryptography; 1 Answer

HMACSHA1 in export to flash 0 Answers

Sha1/2 encryption on Unity 4.2? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges