• 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 George3064 · Sep 26, 2012 at 02:38 AM · webplayerassetsencrypt

How to protect a web player game

Hello All! I have finished my webplayer game, but I am worried about people being able to steal my assets. I have heard that Unity can open the important UNITY3D files that are necessary to run the unity webplayer game. I am a noob when it comes to file encryptions and that sort of stuff, so please help!

-George

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

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by xtron32 · Jul 23, 2014 at 10:43 PM

There is no way to protect your files from hackers, if someone wants them bad enough they will take them. I would suggest some preventative measures such as obfuscating your web build when it's done, as it will help prevent some noobs from just getting the full source code from your game.

Thanks!

Comment
Add comment · Show 1 · 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 Bunny83 · Jul 23, 2014 at 11:10 PM 0
Share

call them crackers ;)

avatar image
1

Answer by Graham-Dunnett · Sep 26, 2012 at 01:38 PM

Use asset bundles. Implement your own encryption/decryption, then use:

http://docs.unity3d.com/Documentation/ScriptReference/AssetBundle.CreateFromMemory.html

Comment
Add comment · Show 3 · 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 xtron32 · Jul 23, 2014 at 10:41 PM 0
Share

That's probably the dumbest thing I have ever seen, no offense. Encrypting/Decrypting assets through scripts will not protect anything, as anyone can simply de-compile the script to project form using .net reflector, and grab the functions used to decrypt/encrypt.

avatar image Bunny83 · Jul 23, 2014 at 11:06 PM 0
Share

@xtron32: Not really, it depends on how your encryption / decryption works. If you get the decryprion key from your server, only when your user has authenticated himself and you send him a personal version of the asset it's quite save. You can't prevent a user from copying, but you can watermark your assets so you can tell this is yours and who has copied it. It also prevents unautorised users to access / use the assets.

As we all know you can't protect something 100%, but this at least increases the "protection level".

avatar image xtron32 · Jul 23, 2014 at 11:27 PM 0
Share

@Bunny83 It is a decent solution, but still you can simply recompile the de-compiled project, and have a debugger write the assets unencrypted when the key is sent from the server.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

12 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

Related Questions

When you publish your game for web access, where are files and assets stored? 1 Answer

how to add models dynamically at runtime in unity web output? 1 Answer

Unity WebPlayer Build Size Excessive 0 Answers

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

What can be wrong with my Internet Explorer 8.0 installation/settings? 1 Answer


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