Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
Crypt.php
»
Crypt
»
Crypt::randomBytes
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
6 calls to Crypt::randomBytes()
Crypt::randomStringHashed
in drupal/
core/
lib/
Drupal/
Component/
Utility/
Crypt.php
Generates a random, base-64 encoded, URL-safe, sha-256 hashed string.
CryptTest::testRandomBytes
in drupal/
core/
tests/
Drupal/
Tests/
Component/
Utility/
CryptTest.php
Tests
\Drupal\Component\Utility\Crypt::randomBytes
().
drupal_session_regenerate
in drupal/
core/
includes/
session.inc
Called when an anonymous user becomes authenticated or vice-versa.
Php::generate
in drupal/
core/
lib/
Drupal/
Component/
Uuid/
Php.php
Implements
Drupal\Component\Uuid\UuidInterface::generate
().
PhpassHashedPassword::generateSalt
in drupal/
core/
lib/
Drupal/
Core/
Password/
PhpassHashedPassword.php
Generates a random base 64-encoded salt prefixed with settings for the hash.
UpgradePathTestBase::prepareD8Session
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Upgrade/
UpgradePathTestBase.php
Prepares the appropriate session for the release of Drupal being upgraded.