ECKey.ReadPublicKey
-------------------

Reads a public key from text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Sign](component_Sign.md) | [5.4](newinversion54.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "ECKey.ReadPublicKey"; KeyData; CurveID ) 

**MBS**( **"ECKey.ReadPublicKey";** /\* Reads a public key from text. \*/  
**$KeyData**; /\* The hex encoded key data. \*/   
**$CurveID**) /\* The curve ID to use.e.g. 711 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| KeyData | The hex encoded key data. |  |
| CurveID | The curve ID to use. | 711 |

### Result

Returns reference or error.

### Description

Reads a public key from text.  
Please use [ECKey.Release](ECKeyRelease.md) later to free memory.  
### See also

- [ECKey.Generate](ECKeyGenerate.md)
- [ECKey.PublicKey](ECKeyPublicKey.md)
- [ECKey.Release](ECKeyRelease.md)
- [PKey.GetPublicKey](PKeyGetPublicKey.md)

### Example Databases

- [Encryption and Hash/ECKey Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/ECKey%20Test.shtml#3ScriptAnchor_)
- [Encryption and Hash/Solution Registration/Solution Registration](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/Solution%20Registration/Solution%20Registration.shtml#1ScriptAnchor_)

### FileMaker Magazin

- [Ausgabe 6/2015, Seite 30](https://filemaker-magazin.de/neuigkeit/3855-Appetithappen-FMM_201506)

This function checks for a license.

Created 9th October 2015 , last changed 12nd October 2015

  
[ECKey.ReadPrivateKey](ECKeyReadPrivateKey.md) - [ECKey.Release](ECKeyRelease.md)

[HTML Version](ECKeyReadPublicKey.shtml)