/**
  *  Decrypt data.
  *
  *  @param  $passwd The password to use for the encryption
  *  @param  $data   The data to decrypt. Should be formatted as base64.
  *
  *  @returns    The decrypted data.
  *
  *  @static
  */
 function decrypt($passwd, $data)
 {
     return @unserialize(YDEncryption::_encrypt($passwd, base64_decode($data)));
 }