123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\Encryption\Helper;
- use Zend\Crypt\Utils;
- /**
- * Class implements compareString from Zend\Crypt
- *
- * @api
- * @since 100.0.2
- */
- class Security
- {
- /**
- * Compare two strings in a secure way that avoids string length guessing based on duration of calculation
- *
- * @param string $expected
- * @param string $actual
- * @return bool
- */
- public static function compareStrings($expected, $actual)
- {
- return Utils::compareStrings($expected, $actual);
- }
- }
|