Back to Joomla project (class list)

Class Crypt - list of methods

Crypt is a Joomla Platform class for handling basic encryption/decryption of data.
Package: Joomla\CMS\Crypt
Copyright: (C) 2012 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Crypt/Crypt.php
Project: Joomla

Method Summary

public static bool
(mixed $known, mixed $unknown)

A timing safe comparison method.
Parameters
  • string $known A known string to check against.
  • string $unknown An unknown string to check.
Returns
  • bool True if the two strings are exactly the same.
Since
  • 3.2
Show source code of this method: timingSafeCompare Source Code

public static int
(mixed $str)

Safely detect a string's length
Parameters
  • string $str String to check the length of
Returns
  • int
Since
  • 3.5
-
  • mbstring.func_overload
  • \RuntimeException
Show source code of this method: safeStrlen Source Code

public static string
(mixed $str, mixed $start, mixed $length = null)

Safely extract a substring
Parameters
  • string $str The string to extract the substring from
  • int $start The starting position to extract from
  • int $length The length of the string to return
Returns
  • string
Since
  • 3.5
Show source code of this method: safeSubstr Source Code

Tags Summary

Since
3.0.0