Blog Layout

NSA Using Github Code

Simon Brown • November 20, 2024

Netflix Intelligence

If you watch the Netflix series Intelligence, Season 1 Episode 4 you see some code on the screen when there's 13 minutes and 24 seconds remaining of the episode.. Looks like the NSA have swiped this code from Bhavesh Jaswani who is from Udaipur, Rajasthan. Or maybe he hacked into the NSA and 'copied' the code? Anyway, it's not super-efficient.


The original code is below.


#include <iostream>

using namespace std;


typedef struct complex

{

  float real;

  float imag;

} complexNumber;


complexNumber addComplexNumbers(complex, complex);


int main()

{

  complexNumber n1, n2, temporaryNumber;

  char signOfImag;


  cout << "For 1st complex number," << endl;

  cout << "Enter real and imaginary parts respectively:" << endl;

  cin >> n1.real >> n1.imag;


  cout << endl << "For 2nd complex number," << endl;

  cout << "Enter real and imaginary parts respectively:" << endl;

  cin >> n2.real >> n2.imag;


  signOfImag = (temporaryNumber.imag > 0) ? '+' : '-';

  temporaryNumber.imag = (temporaryNumber.imag > 0) ? temporaryNumber.imag : -temporaryNumber.imag; 


  temporaryNumber = addComplexNumbers(n1, n2);   

  cout << "Sum = " << temporaryNumber.real << temporaryNumber.imag << "i";

  return 0;

}


complexNumber addComplexNumbers(complex n1,complex n2)

{

   complex temp;

   temp.real = n1.real+n2.real;

   temp.imag = n1.imag+n2.imag;

   return(temp);

}

By Simon Brown January 30, 2025
Microsoft admits bug that kills PC’s audio
By Simon Brown January 13, 2025
After talking on QO-100 with Mike, G0MJW i've ordered a LibreSDR from AliExpress where it's known as "SDR AD9363 AD9361 ZYNQ7020 ADI Pluto communication experiment platform".
By Simon Brown January 1, 2025
It's 2025, another new year.
Share by: