I'm working on implementing a WordPress plugin which has a one-click setup procedure that calls my server to set things up by sending a unique key to the server, and then use that code from that time on to configure the system in the future.
Is there a way in WordPress to get a unique blog ID?
At first glance, I looked at get_current_blog_id
, but it is a pretty local and non-unique number.
Then, I looked at maybe taking the NONCE_KEY
defined in wp-config.php
, and hashing that with SHA512. However, I am concerned about the security risk in this (even though I know that an SHA512 is hard to bruteforce).
Is this concern that I have regarding security reasonable? Is there any other way I can identify a WordPress blog uniquely?