TLS.php in DRD Agent 4.0.x
File
src/Crypt/Method/TLS.php
View source
<?php
namespace Drupal\drd_agent\Crypt\Method;
use Drupal\drd_agent\Crypt\BaseMethod;
class TLS extends BaseMethod {
public function getLabel() : string {
return 'TLS';
}
public function getCipher() : bool {
return FALSE;
}
public function getPassword() : string {
return FALSE;
}
public function isAvailable() : bool {
return FALSE;
}
public function getCipherMethods() : array {
return [];
}
public function getIv() : string {
return '';
}
public function encrypt(array $args) : string {
return serialize($args);
}
public function decrypt($body, $iv) {
return unserialize($body);
}
}
Classes
Name |
Description |
TLS |
Provides security over TLS without additional encryption. |