0 votes

Is file encryption with OS.getuniqueid() secure or could you just create a Godot project with print(OS.get_unique_id()) and bypass the encryption?

in Engine by (168 points)

1 Answer

0 votes

Client-side encryption will never be fully safe since people can spoof the device's unique ID. Do not rely on it to hide sensitive information from the client. Instead, store this information on a server with appropriate access control.

PS: As of writing, OS.get_unique_id() is only implemented on Android and iOS. On desktop platforms and HTML5, it will always return the same value.

by (10,914 points)
edited by

Is there a way to create this for desktop platforms with Godot?
Is there a way to create an other unique number than unique_id?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.