Subversion Repositories oidplus

Rev

Rev 1279 | Rev 1283 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1279 Rev 1282
Line 231... Line 231...
231
         * @param string $id
231
         * @param string $id
232
         * @return int
232
         * @return int
233
         * @throws OIDplusException
233
         * @throws OIDplusException
234
         */
234
         */
235
        public static function genWhoisAuthToken(string $id): int {
235
        public static function genWhoisAuthToken(string $id): int {
236
                return smallhash(OIDplus::baseConfig()->getValue('SERVER_SECRET').'/WHOIS/'.$id);
236
                return smallhash(OIDplus::authUtils()->makeSecret('d8f44c7c-f4e9-11ed-86ca-3c4a92df8582:'.$id));
237
        }
237
        }
238
}
238
}