function OpenIDTestCase::testOpenidDhXorsecret

Test _openid_dh_xorsecret().

File

modules/openid/openid.test, line 693

Class

OpenIDTestCase
Test internal helper functions.

Code

function testOpenidDhXorsecret() {
    $this->assertEqual(_openid_dh_xorsecret('123456790123456790123456790', "abc123ABC\x00\xff"), "\xa4'\x06\xbe\xf1.\x00y\xff\xc2\xc1", '_openid_dh_xorsecret() returned expected result.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.