easy-ecc | High-Level Usability Wrapper for PHPECC | Wrapper library
kandi X-RAY | easy-ecc Summary
kandi X-RAY | easy-ecc Summary
High-Level Usability Wrapper for PHPECC
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns the greatest common divisor of two numbers .
- Generate a GMP .
- Sign a message .
- Decode a hexadecimal string
- Key exchange .
- Parse public key .
- Sets the private key
- Import a private key .
- Get Montgomery public key .
- Returns the point .
easy-ecc Key Features
easy-ecc Examples and Code Snippets
Community Discussions
Trending Discussions on easy-ecc
QUESTION
I am trying to use OpenSSL generated keys with Kenneth MacKay's easy-ecc library but I am struggling.
To test, I've generated keys and dumped them:
...ANSWER
Answered 2017-Dec-21 at 14:07I guess I should have waited an hour before posting that question. easy-ecc works with compressed points. I dumped a compressed public key and used that with success.
There is also a fork by arekinath that supports uncompressed points.
Now if only I could get my micro-ecc code working...
QUESTION
I working on little ECC crypto problem.
The goal is to write a program in C or bash, which will take as input a hash composed of 128 characters in hexadecimal
(Example: 8A9A35145C4EA5260DF9972C804FE2D3F9F3D7A2AC01A6BEB21C82BB30957B3952273AC9166B90C1207347A925780F84A1D2359E7AA05201C674D2B9746FCA07)
and which will generate from the input hash
a private key and a public key of type Elliptic Curve and display the key pair generated.
Can someone clarify for me the problem. I can't understand why we need a hash(or any string) to generate a pair key, as I found In many online solution like this one ther's no need to give a hash. Maybe is it a parphase ? Maybe It's the curve key or somthing similar.
I think all we need is to do something like this for the private key:
openssl ecparam -genkey -noout -out myprivatekey.pem
and for the public key generation:
openssl -ec -in myprivatekey.pem -pubout -out mypublickey.pem
The question is : why we need an input a hash composed of 128 to generate our pair keys? Is it a passphrase for security reason? how made the trick with openssl ?
...ANSWER
Answered 2018-Sep-02 at 15:06In fact this is my own code, you can improve it and edit the solution bellow:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install easy-ecc
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
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page