private static function costDecrypt(string $pack, string $salt, string $pass): int
    {
        // Decrypt the cost value stored in the 32bit int
        $pack = Otp::crypt($pack, ($pass . $salt), self::ALGO);

        // Unpack the value back to an integer and return to caller
        return unpack('N', $pack)[1];
    }
private static function costDecrypt(string $pack, string $salt, string $pass): int
    {
        // Decrypt the cost value stored in the 32bit int
        $pack = Otp::crypt($pack, ($pass . $salt), self::ALGO);

        // Unpack the value back to an integer and return to caller
        return unpack('N', $pack)[1];
    }
private static function costDecrypt ( string $ pack , string $ salt , string $ pass ) : int { // Decrypt the cost value stored in the 32bit int $ pack = Otp :: crypt ( $ pack , ( $ pass . $ salt ) , self :: ALGO ) ; // Unpack the value back to an integer and return to caller return unpack ( 'N' , $ pack ) [ 1 ] ; }
Decrypts the cost string back into an int

@param string $pack
@param string $salt
@param string $pass
@return int
Decrypts the cost string back into an int