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 SuriEureka · Jun 15, 2021 at 01:54 PM · hidecommand-linepassword

Is it feasible to hide the password and serial key when activating a license from the command line

I am developing an automation tool for Unity, one of the tool features I was asked to implement is to activate the Unity on their PC.

The command line is the best option for me according to the guide (https://docs.unity3d.com/Manual/OnlineActivationGuide.html) through, I need to hide some sensitive values (eg. the user's password and their serial key).

Is it possible to hide them from the command line? As we can easily see the external arguments passed to an executable through task manager such as Process Explorer, I basically want to avoid them shown to the users.

Comment
Add comment · Show 2
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 vadprimary · Jun 16, 2021 at 02:00 AM 0
Share

On CI environment, the quick answer is NO. Password still need to be stored in plain text somewhere. In encrypted .env file or store in CI program directly and only injected to env during build.

From normal dev perspective, it is not that much important. As long as the password not show in log file then it is fine.

Beside if unity hub is installed, Unity.exe automatically get license from UnityHub. (Only work on Mac and Window though)

avatar image SuriEureka · Jun 16, 2021 at 02:18 AM 0
Share

vadprimary. Thanks for your input.

I am not too much worried about the CI. My scenario is to use the command line on user's PC. The purpose of the cryptography is to protect the sensitive data from the unknown users. If they are still shown as a plain in the command line, it doesn't mean anything to me to digest them in the Unity license file. if they can be shown that easy way, it is not the thing we can compromise.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Patrickmol · Jun 16, 2021 at 07:44 AM

I have no idea how to do that but I can just suggest just this, I hope I'll help somehow

  string shownPassword;
  string password;
 
 OnInputEnter() // I suppose there is a thing like this
 {
       password += input.text.Substring(inputField.text.Length-1);
       password = password.Substring(0, inputField.text.Length);
       shownPassword = "";
       foreach(Char c in password)
              shownPassword += '*';
       inputFIeld.text = shownPassword
 }



Comment
Add comment · Show 2 · 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 SuriEureka · Jun 16, 2021 at 07:47 AM 0
Share

Thanks Patrickmol for your input.

This is not about a Unity project but the Unity activation.

avatar image Patrickmol SuriEureka · Jun 16, 2021 at 07:58 AM 0
Share

if it is html, else I can't help you.

  <input type="password/>

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

121 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

Related Questions

Automate importing of .unitypackages? 2 Answers

Batchmode not working 1 Answer

How do I enable VR in player settings on an android build target through C# on the command line? 0 Answers

Unity 2019.2.2f1 Commandline not generate build files - folder is empty 1 Answer

Hide MeshCollider wireframe when selected 3 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