MBS FileMaker Plugin Example Databases

ECKey Test

All examples are included with download of MBS FileMaker Plugin.

ECKey Test.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
Value Lists0
Custom Functions0
Custom Menus33
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
ECKey Test
7 fields defined, 1 record
ECKey Test

Fields

Table Name: ECKey Test - 7 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrivateKeyNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      PublicKeyNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          KeyInfoNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              TextNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  TextHashNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      SignatureNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          Hash SaltNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German

                              Layout Objects: ECKey Test

                              Regular Fields

                              Field Name: ECKey Test::PrivateKey
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 24 pt
                              • Left: 138 pt
                              • Bottom: 166 pt
                              • Right: 478 pt
                              • Anchoring: Left, Top
                              Field Format:
                              • Edit Box
                              Field Behavior:
                              • Allow field to be entered: In Find mode, In Browse mode
                              • Touch keyboard type: System Default
                              • Go to next field using: Tab key
                              Yes

                              Field Name: ECKey Test::PublicKey
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 168 pt
                              • Left: 138 pt
                              • Bottom: 310 pt
                              • Right: 478 pt
                              • Anchoring: Left, Top
                              Field Format:
                              • Edit Box
                              Field Behavior:
                              • Allow field to be entered: In Find mode, In Browse mode
                              • Touch keyboard type: System Default
                              • Go to next field using: Tab key
                              Yes

                              Field Name: ECKey Test::KeyInfo
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 312 pt
                              • Left: 138 pt
                              • Bottom: 454 pt
                              • Right: 478 pt
                              • Anchoring: Left, Top
                              Field Format:
                              • Edit Box
                              Field Behavior:
                              • Allow field to be entered: In Find mode, In Browse mode
                              • Touch keyboard type: System Default
                              • Go to next field using: Tab key
                              Yes

                              Field Name: ECKey Test::Text
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 24 pt
                              • Left: 552 pt
                              • Bottom: 166 pt
                              • Right: 805 pt
                              • Anchoring: Left, Top
                              Field Format:
                              • Edit Box
                              Field Behavior:
                              • Allow field to be entered: In Find mode, In Browse mode
                              • Touch keyboard type: System Default
                              • Go to next field using: Tab key
                              Yes

                              Field Name: ECKey Test::TextHash
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 186 pt
                              • Left: 552 pt
                              • Bottom: 200 pt
                              • Right: 805 pt
                              • Anchoring: Left, Top
                              Field Format:
                              • Edit Box
                              Field Behavior:
                              • Allow field to be entered: In Find mode, In Browse mode
                              • Touch keyboard type: System Default
                              • Go to next field using: Tab key
                              Yes

                              Field Name: ECKey Test::Signature
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 204 pt
                              • Left: 552 pt
                              • Bottom: 346 pt
                              • Right: 805 pt
                              • Anchoring: Left, Top
                              Field Format:
                              • Edit Box
                              Field Behavior:
                              • Allow field to be entered: In Find mode, In Browse mode
                              • Touch keyboard type: System Default
                              • Go to next field using: Tab key
                              Yes

                              Field Name: ECKey Test::Hash Salt
                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                              • Top: 168 pt
                              • Left: 552 pt
                              • Bottom: 182 pt
                              • Right: 805 pt
                              • Anchoring: Left, Top
                              Field Format:
                              • Edit Box
                              Field Behavior:
                              • Allow field to be entered: In Find mode, In Browse mode
                              • Touch keyboard type: System Default
                              • Go to next field using: Tab key
                              Yes

                              Group Buttons

                              Button PropertiesCoordinatesScript/Script Step
                                Type:
                              • Text: Generate Keys
                                Additional Properties:
                              • Change to hand cursor over button
                              • Rectangular
                              • Top: 366 pt
                              • Left: 552 pt
                              • Bottom: 391 pt
                              • Right: 715 pt
                              • Anchoring: Left, Top
                              Perform Script [ “GenerateKeys” ]

                              Scripts:


                              Button PropertiesCoordinatesScript/Script Step
                                Type:
                              • Text: Sign Text
                                Additional Properties:
                              • Change to hand cursor over button
                              • Rectangular
                              • Top: 402 pt
                              • Left: 552 pt
                              • Bottom: 427 pt
                              • Right: 715 pt
                              • Anchoring: Left, Top
                              Perform Script [ “Sign” ]

                              Scripts:


                              Button PropertiesCoordinatesScript/Script Step
                                Type:
                              • Text: Verify Signature
                                Additional Properties:
                              • Change to hand cursor over button
                              • Rectangular
                              • Top: 438 pt
                              • Left: 552 pt
                              • Bottom: 463 pt
                              • Right: 715 pt
                              • Anchoring: Left, Top
                              Perform Script [ “Verify” ]

                              Scripts:


                              Script Hierarchy

                              GenerateKeys
                              Verify
                              Sign
                              Clear

                              Next Script: [Verify]
                              Script NameGenerateKeys
                              Run script with full access privilegesOff
                              Include In MenuYes
                              Layouts that use this script
                              Scripts that use this script
                                Script Definition
                                Script Steps
                                Fields used in this script
                                Scripts used in this script
                                  Layouts used in this script
                                    Tables used in this script
                                    Table occurrences used by this script
                                    Custom Functions used by this script
                                      Custom menu set used by this script

                                        Previous Script: [GenerateKeys]Next Script: [Sign]
                                        Script NameVerify
                                        Run script with full access privilegesOff
                                        Include In MenuYes
                                        Layouts that use this script
                                        Scripts that use this script
                                          Script Definition
                                          Script Steps
                                          • Set Variable [ $key; Value:MBS("ECKey.ReadPublicKey"; ECKey Test::PublicKey; 711) ]
                                          • If [ MBS("IsError") ]
                                          • Show Custom Dialog [ Message: "Failed to read key."; Default Button: “OK”, Commit: “No”; Button 2: “Cancel”, Commit: “No” ]
                                          • Exit Script [ ]
                                          • End If
                                          • Set Field [ ECKey Test::KeyInfo; MBS("ECKey.Description"; $key) ]
                                          • Set Variable [ $hash; Value:MBS("Hash.SHA512"; ECKey Test::Hash Salt & ECKey Test::Text; 0) ]
                                          • Set Field [ ECKey Test::TextHash; $hash ]
                                          • Set Variable [ $r; Value:MBS("ECKey.Verify"; $key; $hash; ECKey Test::Signature) ]
                                          • If [ $r = "OK" ]
                                          • Show Custom Dialog [ Message: "Signature is valid."; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                          • Else
                                          • Show Custom Dialog [ Message: "Signature is not valid. " & ¶ & $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                          • End If
                                          • Set Variable [ $r; Value:MBS("ECKey.Release"; $key) ]
                                          Fields used in this script
                                          Scripts used in this script
                                            Layouts used in this script
                                              Tables used in this script
                                              Table occurrences used by this script
                                              Custom Functions used by this script
                                                Custom menu set used by this script

                                                  Previous Script: [Verify]Next Script: [Clear]
                                                  Script NameSign
                                                  Run script with full access privilegesOff
                                                  Include In MenuYes
                                                  Layouts that use this script
                                                  Scripts that use this script
                                                    Script Definition
                                                    Script Steps
                                                    • Set Variable [ $key; Value:MBS("ECKey.ReadPrivateKey"; ECKey Test::PrivateKey) ]
                                                    • If [ MBS("IsError") ]
                                                    • Show Custom Dialog [ Message: "Failed to read key."; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                    • Exit Script [ ]
                                                    • End If
                                                    • Set Field [ ECKey Test::KeyInfo; MBS("ECKey.Description"; $key) ]
                                                    • Set Variable [ $hash; Value:MBS("Hash.SHA512"; ECKey Test::Hash Salt & ECKey Test::Text; 0) ]
                                                    • Set Field [ ECKey Test::TextHash; $hash ]
                                                    • Set Variable [ $signature; Value:MBS("ECKey.Sign"; $key; $hash) ]
                                                    • Set Field [ ECKey Test::Signature; $signature ]
                                                    • Set Variable [ $r; Value:MBS("ECKey.Release"; $key) ]
                                                    Fields used in this script
                                                    Scripts used in this script
                                                      Layouts used in this script
                                                        Tables used in this script
                                                        Table occurrences used by this script
                                                        Custom Functions used by this script
                                                          Custom menu set used by this script

                                                            Previous Script: [Sign]
                                                            Script NameClear
                                                            Run script with full access privilegesOff
                                                            Include In MenuYes
                                                            Layouts that use this script
                                                              Scripts that use this script
                                                                Script Definition
                                                                Script Steps
                                                                • Set Field [ ECKey Test::Signature; "" ]
                                                                • Set Field [ ECKey Test::TextHash; "" ]
                                                                • Set Field [ ECKey Test::PrivateKey; "" ]
                                                                • Set Field [ ECKey Test::PublicKey; "" ]
                                                                • Set Field [ ECKey Test::KeyInfo; "" ]
                                                                Fields used in this script
                                                                Scripts used in this script
                                                                  Layouts used in this script
                                                                    Tables used in this script
                                                                    Table occurrences used by this script
                                                                    Custom Functions used by this script
                                                                      Custom menu set used by this script

                                                                        Download example: ECKey Test

                                                                        Used functions:




                                                                        Links
                                                                        MBS Xojo blog