Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 RogueMacro · Oct 03, 2018 at 04:34 PM · unity 5script.

Encrypting / Verifying script files

I noticed that I can make a game, build it and run it just fine, but the scripts that is necesserry for the game to work, is easy to tweak and modify and basically hack the game. Just go into the files and edit with notepad or whatever. My question is: Can you encrypt the scripts or make a verifier ( Possibly connected to an internet file that no one can edit ) to verify that the files are not tweaked with?

PS: I’m sorry, but I wans’t sure what topics I should use for this question.

Comment
Add comment · Show 10
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 TreyH · Oct 03, 2018 at 04:46 PM 0
Share

The source code for your built game is editable? Even the WebGL builds that use JS are unintelligible for text editors, are you talking about the .cs files?

avatar image RogueMacro · Oct 04, 2018 at 02:38 PM 0
Share

Yes, I mean the .cs files are editable

avatar image TreyH RogueMacro · Oct 04, 2018 at 02:43 PM 0
Share

Those aren't included in the build, everything gets compiled. Do you mean that you're worried someone will change them while you're still working on the project?

avatar image RogueMacro · Oct 04, 2018 at 03:12 PM 0
Share

It was just that qhen I build it and go into the files in file explorer, I can go to Project/Assets/Scripts/$$anonymous$$yScript.cs and edit it. But I have tried to export tr exe file and run it alone, but it didnt work. Is there any dll or lib I need to include?

avatar image TreyH RogueMacro · Oct 04, 2018 at 03:18 PM 0
Share

Yeah that's your source, but that isn't the built version. Where are you saving the built project? Go look there and see just what your project looks like afterwards.

avatar image RogueMacro · Oct 04, 2018 at 03:23 PM 0
Share

Im saving the build exe in the Project folder (Not the asset folder)

avatar image TreyH RogueMacro · Oct 04, 2018 at 03:27 PM 0
Share

$$anonymous$$ake an empty folder somewhere called "Build" and set that as your build destination. You will see a bunch of DLLs and other hard files, but no .cs files.

avatar image RogueMacro · Oct 04, 2018 at 03:35 PM 0
Share

And the .dlls are hack proof(ish)? And can I make a verifier just if I have custom .txt files that I write and read to verify with some file I have on an online server?

avatar image TreyH RogueMacro · Oct 04, 2018 at 03:42 PM 0
Share

Nothing is hack proof, only ish. If someone has a decompiler like ReSharper, then it's always possible to spoof your DLLs. As for your original question, I think you now see that the .cs and other source files are not included in the build. What you're veering into now is compiler security. If you're curious about that, then ask a different question so that more qualified people will see it.

avatar image RogueMacro TreyH · Oct 04, 2018 at 04:17 PM 1
Share

Ok, thanks you so much for helping me out :)

0 Replies

· Add your reply
  • Sort: 

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

187 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 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 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to use Animator Override Controler in script? 0 Answers

Random generation 1 Answer

How to assign script to inspector variable 2 Answers

Unity 5 C#, having a script show up in a path in the Editor 1 Answer

UnityEngine.UI.dll 0 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