You are here

public function OpenSSL::isAvailable in DRD Agent 8.3

Same name and namespace in other branches
  1. 4.0.x src/Crypt/Method/OpenSSL.php \Drupal\drd_agent\Crypt\Method\OpenSSL::isAvailable()

Find out if the crypt method is available.

Return value

bool TRUE if method is available.

Overrides BaseMethodInterface::isAvailable

File

src/Crypt/Method/OpenSSL.php, line 60

Class

OpenSSL
Provides OpenSSL encryption functionality.

Namespace

Drupal\drd_agent\Crypt\Method

Code

public function isAvailable() : bool {
  return function_exists('openssl_encrypt');
}