fix secretKeyBytes a bit
This commit is contained in:
parent
3dfc5134b6
commit
549f8dc084
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ function createServer(options) {
|
|||
client.secretKeyBytes = crypto.createHash('sha256');
|
||||
client.secretKeyBytes.update("SO SECRET VERY SECURE");
|
||||
client.secretKeyBytes.update(client.sharedSecret)
|
||||
client.secretKeyBytes = new Buffer(client.secretKeyBytes.digest())
|
||||
client.secretKeyBytes = client.secretKeyBytes.digest();
|
||||
|
||||
client.writeMCPE('server_to_client_handshake', {
|
||||
publicKey: ec.getPublicKey('base64'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue