PHPECC | simple frontend to Matyas Danter

 by   tuaris PHP Version: Current License: BSD-2-Clause

kandi X-RAY | PHPECC Summary

kandi X-RAY | PHPECC Summary

PHPECC is a PHP library. PHPECC has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

A simple frontend to Matyas Danter’s phpecc libraries for the EC algorithm. Usage information can be seen in the example.php file or at:
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PHPECC has a low active ecosystem.
              It has 9 star(s) with 2 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              PHPECC has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of PHPECC is current.

            kandi-Quality Quality

              PHPECC has 0 bugs and 0 code smells.

            kandi-Security Security

              PHPECC has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              PHPECC code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              PHPECC is licensed under the BSD-2-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              PHPECC releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi has reviewed PHPECC and discovered the below as its top functions. This is intended to give you an instant insight into PHPECC implemented functionality, and help decide if they suit your requirements.
            • Compute factorization
            • Multiplies two points .
            • Verify a hash
            • Checks if a point is valid
            • Get public point
            • Generate a curve PEM
            • Returns true if the matrix contains the given x .
            • Convert decimal string to hexadecimal
            • Returns the parameters for the secp - 128 .
            • Convert a gMP private private key to hex
            Get all kandi verified functions for this library.

            PHPECC Key Features

            No Key Features are available at this moment for PHPECC.

            PHPECC Examples and Code Snippets

            No Code Snippets are available at this moment for PHPECC.

            Community Discussions

            Trending Discussions on PHPECC

            QUESTION

            C# and PHP ECDH not matching
            Asked 2017-May-10 at 15:52

            I'm trying to generate a shared secret between a web server running PHP and a C# desktop application. I'm aware of the BouncyCastle library, but I'd prefer not having to use it since it's pretty huge.

            I'm using phpecc and ECDiffieHellmanCng and trying to generate a shared secret between the two parties but I'm having issues with exporting/importing in C#.

            It seems phpecc requires der/pem format in order to import a key, and ECDiffieHellmanCng doesn't seem to have any easy way to export in a compatible format.

            Would I need to write my own pem/der encoder and decoder in order to do this or is there some alternative easier way?

            Currently I'm doing the following in C#:

            ...

            ANSWER

            Answered 2017-May-10 at 15:52

            .NET Core 1.0 and .NET Framework 4.7 have the ECParameters struct to import/export keys. The ToByteArray() method you called is producing a CNG EccPublicBlob which has very little to do with the SEC-1 ECParameters format.

            I'm going to assume that you wanted to use secp384r1/NIST P-384, even though you specified that as a hash algorithm. If you want some other curve, you'll need to do some translations.

            The (.NET) ECParameters struct will only help you get started. Turning that into a file requires translating it into a PEM-encoded DER-encoded ASN.1-based structure. (But if you're sticking with NIST P-256/384/521, you can do it with the byte[] you currently have)

            In SEC 1 v2.0 we get the following structures:

            Source https://stackoverflow.com/questions/43871026

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PHPECC

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/tuaris/PHPECC.git

          • CLI

            gh repo clone tuaris/PHPECC

          • sshUrl

            git@github.com:tuaris/PHPECC.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link