Exemple #1
0
 public function testCreateCheckSum2()
 {
     $version = 1;
     $id = 'cafed00d-2131-4159-8e11-0b4dbadb1738';
     $srcNodeId = 'cafed00d-2331-4159-8e11-0b4dbadb1738';
     $dstNodeId = 'cafed00d-2531-4159-8e11-0b4dbadb1738';
     $dstSslPubKey = static::DST1_SSL_KEY_PUB;
     $text = 'hello world!';
     $timeCreated = '540892800';
     $password = '******';
     $checksum = Msg::createCheckSum($version, $id, $srcNodeId, $dstNodeId, $dstSslPubKey, $text, $timeCreated, $password);
     $this->assertEquals('1c870e54257e6eb594724508a0a9c616b1905c2aed25de8a', $checksum);
 }