Changed Encryption to use LibSodium instead of OpenSSL, refactored many things and overall improved the code quality and performance with magic.
This commit is contained in:
parent
46ad03a54d
commit
367399f0fd
44 changed files with 2971 additions and 2016 deletions
25
src/Socialbox/Objects/ResolvedServerOld.php
Normal file
25
src/Socialbox/Objects/ResolvedServerOld.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace Socialbox\Objects;
|
||||
|
||||
class ResolvedServer
|
||||
{
|
||||
private string $endpoint;
|
||||
private string $publicKey;
|
||||
|
||||
public function __construct(string $endpoint, string $publicKey)
|
||||
{
|
||||
$this->endpoint = $endpoint;
|
||||
$this->publicKey = $publicKey;
|
||||
}
|
||||
|
||||
public function getEndpoint(): string
|
||||
{
|
||||
return $this->endpoint;
|
||||
}
|
||||
|
||||
public function getPublicKey(): string
|
||||
{
|
||||
return $this->publicKey;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue