diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-18 18:28:31 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-18 18:28:31 +0200 |
commit | f67f888d50a9f375d85a20bf6d1e2630acb05fed (patch) | |
tree | 3ea85f5a1caefc60e280ce0f6244140faa9bbb7d /lib/public/security/stringutils.php | |
parent | 4a94203492e3b475ee26b65d5992796152c645bd (diff) | |
download | nextcloud-server-f67f888d50a9f375d85a20bf6d1e2630acb05fed.tar.gz nextcloud-server-f67f888d50a9f375d85a20bf6d1e2630acb05fed.zip |
Move \OCP\Security to PSR-4
Diffstat (limited to 'lib/public/security/stringutils.php')
-rw-r--r-- | lib/public/security/stringutils.php | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/lib/public/security/stringutils.php b/lib/public/security/stringutils.php deleted file mode 100644 index ff1e290315a..00000000000 --- a/lib/public/security/stringutils.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php -/** - * @author Lukas Reschke <lukas@owncloud.com> - * @author Morris Jobke <hey@morrisjobke.de> - * - * @copyright Copyright (c) 2016, ownCloud, Inc. - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * - */ - - -namespace OCP\Security; - -/** - * Class StringUtils - * - * @package OCP\Security - * @since 8.0.0 - */ -class StringUtils { - /** - * Compares whether two strings are equal. To prevent guessing of the string - * length this is done by comparing two hashes against each other and afterwards - * a comparison of the real string to prevent against the unlikely chance of - * collisions. - * @param string $expected The expected value - * @param string $input The input to compare against - * @return bool True if the two strings are equal, otherwise false. - * @since 8.0.0 - * @deprecated 9.0.0 Use hash_equals - */ - public static function equals($expected, $input) { - return hash_equals($expected, $input); - } -} |