You are here

function simple_ldap_sso_encrypt in Simple LDAP 7.2

Same name and namespace in other branches
  1. 7 simple_ldap_sso/simple_ldap_sso.inc \simple_ldap_sso_encrypt()

Encrypt an array of session data.

1 call to simple_ldap_sso_encrypt()
simple_ldap_sso_set_cookie in simple_ldap_sso/simple_ldap_sso.inc
Set the SSO cookie.

File

simple_ldap_sso/simple_ldap_sso.inc, line 245
Simple LDAP SSO API functions.

Code

function simple_ldap_sso_encrypt(array $data) {
  $text = serialize($data);
  return _simple_ldap_encrypt_decrypt($text, TRUE);
}