diff --git a/src/Utility/Security.php b/src/Utility/Security.php index 43f70d6604e..772a4e037dc 100644 --- a/src/Utility/Security.php +++ b/src/Utility/Security.php @@ -47,16 +47,6 @@ class Security */ protected static $_instance; - /** - * Generate authorization hash. - * - * @return string Hash - */ - public static function generateAuthKey() - { - return Security::hash(Text::uuid()); - } - /** * Create a hash from string using given method. * diff --git a/tests/TestCase/Utility/SecurityTest.php b/tests/TestCase/Utility/SecurityTest.php index 40a69e4e685..7a4e391f9a2 100644 --- a/tests/TestCase/Utility/SecurityTest.php +++ b/tests/TestCase/Utility/SecurityTest.php @@ -26,16 +26,6 @@ class SecurityTest extends TestCase { - /** - * testGenerateAuthkey method - * - * @return void - */ - public function testGenerateAuthkey() - { - $this->assertEquals(strlen(Security::generateAuthKey()), 40); - } - /** * testHash method *