ECKey.ReadPrivateKey
--------------------

Reads a private 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.ReadPrivateKey"; KeyData ) 

**MBS**( **"ECKey.ReadPrivateKey";** /\* Reads a private key from text. \*/  
**$KeyData**) /\* The hex encoded key data. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| KeyData | The hex encoded key data. |  |

### Result

Returns reference number or error.

### Description

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

- [ECKey.Generate](ECKeyGenerate.md)
- [ECKey.PrivateKey](ECKeyPrivateKey.md)
- [ECKey.Release](ECKeyRelease.md)
- [PKey.GetPrivateKey](PKeyGetPrivateKey.md)

### Example Databases

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

### 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.PublicKey](ECKeyPublicKey.md) - [ECKey.ReadPublicKey](ECKeyReadPublicKey.md)

[HTML Version](ECKeyReadPrivateKey.shtml)