ECKey.Sign
----------

Signs the given data.

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

MBS( "ECKey.Sign"; ECKey; Data ) 

**MBS**( **"ECKey.Sign";** /\* Signs the given data. \*/  
**$ECKey**; /\* The reference number for the key.e.g. $Key \*/   
**$Data**) /\* The hex encoded data.e.g. $hash \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ECKey | The reference number for the key. | $Key |
| Data | The hex encoded data. | $hash |

### Result

Returns text or error.

### Description

Signs the given data.  
We highly recommend to use a hash like SHA-512 to preprocess the data.  
Returns the signature as hex text on success.  
### See also

- [ECKey.Size](ECKeySize.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 9th October 2015

  
[ECKey.ReleaseAll](ECKeyReleaseAll.md) - [ECKey.Size](ECKeySize.md)

[HTML Version](ECKeySign.shtml)