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

MBS FileMaker Plugin Example Databases

Encrypt Containers

All examples are included with download of MBS FileMaker Plugin.

Encrypt Containers.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts6
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
Encrypt Containers
5 fields defined, 1 record
Encrypt Containers

Fields

Table Name: Encrypt Containers - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ResultNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      InputFileNormal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
          EncryptedNormal, BinaryAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
              DecryptedNormal, BinaryAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
                  KeyNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German

                      Layout Objects: Encrypt Containers

                      Regular Fields

                      Field Name: Encrypt Containers::Result
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 42 pt
                      • Left: 138 pt
                      • Bottom: 56 pt
                      • Right: 391 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: Encrypt Containers::InputFile
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 60 pt
                      • Left: 138 pt
                      • Bottom: 245 pt
                      • Right: 391 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
                      No

                      Field Name: Encrypt Containers::Encrypted
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 246 pt
                      • Left: 138 pt
                      • Bottom: 371 pt
                      • Right: 391 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
                      No

                      Field Name: Encrypt Containers::Decrypted
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 372 pt
                      • Left: 138 pt
                      • Bottom: 563 pt
                      • Right: 391 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
                      No

                      Field Name: Encrypt Containers::Key
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 24 pt
                      • Left: 138 pt
                      • Bottom: 38 pt
                      • Right: 391 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: Encrypt Blowfish
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 216 pt
                      • Left: 402 pt
                      • Bottom: 241 pt
                      • Right: 535 pt
                      • Anchoring: Left, Top
                      Perform Script [ “EncryptBlowFish” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Encrypt AES
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 246 pt
                      • Left: 402 pt
                      • Bottom: 271 pt
                      • Right: 535 pt
                      • Anchoring: Left, Top
                      Perform Script [ “EncryptAES” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Decrypt Blowfish
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 342 pt
                      • Left: 402 pt
                      • Bottom: 367 pt
                      • Right: 535 pt
                      • Anchoring: Left, Top
                      Perform Script [ “DecryptBlowFish” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Decrypt AES
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 372 pt
                      • Left: 402 pt
                      • Bottom: 397 pt
                      • Right: 535 pt
                      • Anchoring: Left, Top
                      Perform Script [ “DecryptAES” ]

                      Scripts:


                      Script Hierarchy

                      EncryptBlowFish
                      DecryptBlowFish
                      EncryptAES
                      DecryptAES
                      Encrypt
                      Decrypt

                      Next Script: [DecryptBlowFish]
                      Script NameEncryptBlowFish
                      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: [EncryptBlowFish]Next Script: [EncryptAES]
                                    Script NameDecryptBlowFish
                                    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: [DecryptBlowFish]Next Script: [DecryptAES]
                                                  Script NameEncryptAES
                                                  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: [EncryptAES]Next Script: [Encrypt]
                                                                Script NameDecryptAES
                                                                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: [DecryptAES]Next Script: [Decrypt]
                                                                              Script NameEncrypt
                                                                              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 [ $function; Value:Get(ScriptParameter) ]
                                                                                • Set Variable [ $inputData; Value:Encrypt Containers::InputFile ]
                                                                                • Set Variable [ $outputData; Value:MBS($function; Encrypt Containers::Key; $inputData) ]
                                                                                • Set Variable [ $outputText; Value:GetAsText ( $outputData ) ]
                                                                                • If [ Left($outputText;5) = "[MBS]" ]
                                                                                • Set Field [ Encrypt Containers::Result; $outputText ]
                                                                                • Set Field [ Encrypt Containers::Encrypted; "" ]
                                                                                • Else
                                                                                • Set Field [ Encrypt Containers::Result; "OK" ]
                                                                                • Set Field [ Encrypt Containers::Encrypted; $outputData ]
                                                                                • End If
                                                                                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: [Encrypt]
                                                                                        Script NameDecrypt
                                                                                        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 [ $function; Value:Get(ScriptParameter) ]
                                                                                          • Set Variable [ $inputData; Value:Encrypt Containers::Encrypted ]
                                                                                          • Set Variable [ $outputData; Value:MBS($function; Encrypt Containers::Key; $inputData) ]
                                                                                          • Set Variable [ $outputText; Value:GetAsText ( $outputData ) ]
                                                                                          • If [ Left($outputText;5) = "[MBS]" ]
                                                                                          • Set Field [ Encrypt Containers::Result; $outputText ]
                                                                                          • Set Field [ Encrypt Containers::Decrypted; "" ]
                                                                                          • Else
                                                                                          • Set Field [ Encrypt Containers::Result; "OK" ]
                                                                                          • Set Field [ Encrypt Containers::Decrypted; $outputData ]
                                                                                          • End If
                                                                                          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: Encrypt Containers

                                                                                                  Used functions: