Is a file encryption with OS.get_unique_id() safe?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Gamemap

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

:bust_in_silhouette: Reply From: Calinou

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.

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?

Gamemap | 2021-03-17 15:53