You are here

public function CryptConnector::__construct in Acquia Connector 3.x

Same name and namespace in other branches
  1. 8.2 src/CryptConnector.php \Drupal\acquia_connector\CryptConnector::__construct()
  2. 8 src/CryptConnector.php \Drupal\acquia_connector\CryptConnector::__construct()

CryptConnector constructor.

Parameters

string $algo: The string name of a hashing algorithm usable by hash(), like 'sha256'.

string $password: Plain-text password up to 512 bytes (128 to 512 UTF-8 characters) to hash.

string $setting: An existing hash or the output of $this->generateSalt(). Must be at least 12 characters (the settings and salt).

mixed $extra_md5: (Deprecated) If not empty password needs to be hashed with MD5 first.

Overrides PhpassHashedPassword::__construct

File

src/CryptConnector.php, line 52

Class

CryptConnector
Class CryptConnector.

Namespace

Drupal\acquia_connector

Code

public function __construct($algo, $password, $setting, $extra_md5) {
  $this->algo = $algo;
  $this->password = $password;
  $this->setting = $setting;
}