Skip to content

Conversation

@appfeel
Copy link

@appfeel appfeel commented Apr 19, 2018

Previously wee-php was designed to encrypt 'Body' element.
I've added the option to encrypt an element inside body instead, and also what type of encryption: content or element.

Usage:

$options = array(
    'KeyInfo' => array("X509SubjectKeyIdentifier" => true),
    'ElementToEncrypt' => array(
        'name' => 'MyElement',
        'Content' => true,
    ),
);
$objWSSE->encryptSoapDoc($siteKey, $objKey, $options, false);

Hope it helps!

This is designed to encrypt 'Body' element.
I've added the option to encrypt an element inside body instead, and also what type of encryption: content or element.

Hope it helps!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant