Coder Social home page Coder Social logo

Comments (4)

arnaudlecam avatar arnaudlecam commented on August 30, 2024 1

Hi @christofmuc ,
Reading the doc, I created a file named RandomNumbers.bin in the /common subdirectory (on local and remote host, with the same shared secret).
But now I see my /CMakeLists.txt contains:
set(CRYPTO_FILE "${CMAKE_CURRENT_LIST_DIR}/common/resources/RandomNumbers.bin")
(it was before you commited)
So I mouved my RandomNumbers.bin files in /common/resources on each host, and I works now !
The pb was in the doc...

from jammernetz.

arnaudlecam avatar arnaudlecam commented on August 30, 2024 1

I got it working now : next step for me is to build for Windows (needed to have test session with my band members...).
Thank you !

from jammernetz.

christofmuc avatar christofmuc commented on August 30, 2024

You're correct, that is the message that is emitted when the shared secret from random.bin doesn't allow decoding, normally I have seen this only with a mismatch secret pair.

Did you test a localhost client server build on the same machine? If that works and the error message comes up at two different machines only probably double check the RandomNumbers.bin, because it will be autogenerated by the CMake process.

If that doesn't work, you could try to get it to run without encryption first to see if the Blowfish really is the problem. Looking at the code (it's been awhile) that would be lines 84ff in Client.cpp and lines 43ff of DataAcceptThread.cpp of the client package, and line 71ff of the AcceptThread.cpp and line 75ff in SendThread.cpp of the server package. Looking at this, I should a) add a #define to enable and disable encryption and refactor the code into common to centralize the code for it.

Let me know how it proceeds!

from jammernetz.

christofmuc avatar christofmuc commented on August 30, 2024

Oh, I just merged into master with changes piled up for months. Surprised it works ;-)

The latest master has externalized the shared secret file (it is still the same 72 bytes for Blowfish) - you have a UI to select the file for the client, and specify it on the command line for the server. Makes it easier to change. This is brand new, I haven't really tested it, so go with your version in case you want to test drive a more stable (i.e. hung to dry) software!

from jammernetz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.