From 32996000932944c249dc56ccc711d274e094e934 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 9 May 2021 13:23:53 +0200 Subject: [PATCH] Document caveats of `OS.get_unique_id()` (cherry picked from commit 7350f90c579ce6db0be3cf67175778546459322e) --- doc/classes/OS.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index 8db8db90148..79a7811e93d 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -530,6 +530,7 @@ Returns a string that is unique to the device. + [b]Note:[/b] This string may change without notice if the user reinstalls/upgrades their operating system or changes their hardware. This means it should generally not be used to encrypt persistent data as the data saved prior to an unexpected ID change would become inaccessible. The returned string may also be falsified using external programs, so do not rely on the string returned by [method get_unique_id] for security purposes. [b]Note:[/b] Returns an empty string on HTML5 and UWP, as this method isn't implemented on those platforms yet.