You are here

protected static function SocialApi::getEncryptionKey in Social API 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/SocialApi.php \Drupal\social_api\Entity\SocialApi::getEncryptionKey()

Gets the hash salt for this drupal installation.

Return value

string The encryption key.

2 calls to SocialApi::getEncryptionKey()
SocialApi::decryptToken in src/Entity/SocialApi.php
Decrypts the stored token.
SocialApi::encryptToken in src/Entity/SocialApi.php
Returns the encrypted token.

File

src/Entity/SocialApi.php, line 118

Class

SocialApi
Defines a base class for Social API content entities.

Namespace

Drupal\social_api\Entity

Code

protected static function getEncryptionKey() {
  return Settings::getHashSalt();
}