Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Generates a new pair of private and public keys.

Component Version macOS Windows Linux Server iOS SDK
Sign 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "ECKey.Generate"; CurveID )   More


Parameter Description Example
CurveID The curve ID to use. 711


Returns reference number or error.


Generates a new pair of private and public keys.
You can use ECKey.ReadPrivateKey and ECKey.ReadPublicKey functions to get the keys.
Please use ECKey.Release later to free memory.


Generate keys and store in fields:

Set Variable [$key; Value:MBS("ECKey.Generate"; 711)]
Set Field [ECKey Test::KeyInfo; MBS("ECKey.Description"; $key)]
Set Field [ECKey Test::PrivateKey; MBS("ECKey.PrivateKey"; $key)]
Set Field [ECKey Test::PublicKey; MBS("ECKey.PublicKey"; $key)]
Set Variable [$r; Value:MBS("ECKey.Release"; $key)]

See also

Example Databases

This function checks for a license.

Created 9th October 2015, last changed 14th October 2015

ECKey.Duplicate - ECKey.List