GithubHelp home page GithubHelp logo

Comments (15)

zbalkan avatar zbalkan commented on July 23, 2024 1

I cloned the solution in a new computer and it did not build at all. The dependencies problem is something and more general. I'll investigate it. I have dotnet 5.0 and 6,0 installed and got the errors. Now trying to install the latest 4.x use in projects. It is 4.7.2 in Ceras and the others are previous versions.

from h.pipes.

HavenDV avatar HavenDV commented on July 23, 2024 1

Neither do the installed client machines

Sorry this was only addressed to @zbalkan . This does not apply to those who use the library.

from h.pipes.

zbalkan avatar zbalkan commented on July 23, 2024 1

There are candidates like nsec, Bouncy Castle or System.Security.Cryptography namespace . But they have different runtime requirements. I can give each of them a shot and see what we can get.

from h.pipes.

zbalkan avatar zbalkan commented on July 23, 2024 1

I made some experiments. Currently, I plan to make a PR just to add a README for Inferno that mentions the dependencies and limitations. And another PR with a new project with a demo using System.Security.Cryptography. Yet, it will take time.

from h.pipes.

HavenDV avatar HavenDV commented on July 23, 2024

I don't know much about cryptography, please check these links. I would also appreciate @zbalkan if he comments on this.
#1
#11
#12

from h.pipes.

HavenDV avatar HavenDV commented on July 23, 2024

The project uses .Net 4.5.1 as the minimum supported framework, it needs to be installed explicitly (VS2022 does not install it automatically)

from h.pipes.

PeterPann23 avatar PeterPann23 commented on July 23, 2024

from h.pipes.

zbalkan avatar zbalkan commented on July 23, 2024

Ok, @PeterPann23 , can you please detail the issue you posted?

from h.pipes.

PeterPann23 avatar PeterPann23 commented on July 23, 2024

the NuGet package compiles, the distributed application will not... depending on the client machines config, also you close the connection on errors without saying why, perhaps have a look at the [SupportedOSPlatform("windows")]

from h.pipes.

HavenDV avatar HavenDV commented on July 23, 2024

also you close the connection on errors without saying why

For now, exceptions will be shown via:

Debug.WriteLine($"{nameof(EnableEncryption)} returns exception: {exception}");

I can add a callback that will return exceptions.

from h.pipes.

HavenDV avatar HavenDV commented on July 23, 2024

I added the possibility of additional exception handling when calling EnableEncryption:
ec5267d

from h.pipes.

HavenDV avatar HavenDV commented on July 23, 2024

As for the rest of the problems - I need something specific - error messages or a project to reproduce.

from h.pipes.

HavenDV avatar HavenDV commented on July 23, 2024

I have also added a warning to the README.
image

Also, I marked EnableEncryption with System.Runtime.Versioning.SupportedOSPlatform(windows) because CngKey.Import is only available for windows platforms.
@zbalkan do you know any cross platform alternatives for this? You can see the current errors by removing SupportedOSPlatform from the H.Formatters.Inferno project

from h.pipes.

HavenDV avatar HavenDV commented on July 23, 2024

I also checked the Inferno research for compatibility and did a PR for them.
sdrapkin/SecurityDriven.Inferno#40

CngKeyExtensions.CreateNewDhmKey and GetSharedDhmSecret also windows-only.

from h.pipes.

HavenDV avatar HavenDV commented on July 23, 2024

There are candidates like nsec, Bouncy Castle or System.Security.Cryptography namespace . But they have different runtime requirements. I can give each of them a shot and see what we can get.

System.Security.Cryptography would be the best candidate and would look the best if it were possible to use it.

P.S. If you do this, please create a new project like the Inferno project and do any experiments there.

from h.pipes.

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.