original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Sets the key that data is encrypted with and turns on encryption,
  the client must use the same key
  @param $key String
docstring_tokens: Sets the key that data is encrypted with and turns on encryption the client must use the same key