src/sb/Controller/JSON/RPC2/Server.php
public function useEncryption($key)
    {
        $this->encryptor = new \sb\Encryption\ForTransmission($key);
        $this->encryption_key = $key;

        //decrypt cookies if sent
        foreach (\sb\Gateway::$cookie as $k => $v) {
            \sb\Gateway::$cookie[$k] = $this->encryptor->decrypt($v);
        }
    }
public function useEncryption($key)
    {
        $this->encryptor = new \sb\Encryption\ForTransmission($key);
        $this->encryption_key = $key;

        //decrypt cookies if sent
        foreach (\sb\Gateway::$cookie as $k => $v) {
            \sb\Gateway::$cookie[$k] = $this->encryptor->decrypt($v);
        }
    }
public function useEncryption ( $ key ) { $ this -> encryptor = new \ sb \ Encryption \ ForTransmission ( $ key ) ; $ this -> encryption_key = $ key ; //decrypt cookies if sent foreach ( \ sb \ Gateway :: $ cookie as $ k => $ v ) { \ sb \ Gateway :: $ cookie [ $ k ] = $ this -> encryptor -> decrypt ( $ v ) ; } }
Sets the key that data is encrypted with and turns on encryption,
the client must use the same key
@param $key String
Sets the key that data is encrypted with and turns on encryption the client must use the same key