public function XMLSecurityKey::encryptData in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
Encrypts the given data (string) using the regarding php-extension, depending on the library assigned to algorithm in the contructor.
Parameters
string $data:
Return value
mixed|string
File
- includes/
XMLSecurityKey.php, line 541
Class
Code
public function encryptData($data) {
switch ($this->cryptParams['library']) {
case 'mcrypt':
return $this
->encryptMcrypt($data);
case 'openssl':
return $this
->encryptOpenSSL($data);
}
}