Mother DocsMother Docs
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
  • Mother OS (Ingame Script)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Command Line Interface (CLI)
      • Configuration
      • Modules
    • Core Modules

      • Activity Monitor
      • Almanac
      • Block Catalogue
      • Local Storage
      • Intergrid Message Service
    • Extension Modules

      • Air Vent Module
      • Battery Module
      • Terminal Block Module
      • Cockpit Module
      • Connector Module
      • Display Module
      • Docking Module
      • Door Module
      • Flight Control Module
      • Flight Planning Module
      • Gas Tank Module
      • Gyroscope Module
      • Hinge Module
      • Landing Gear Module
      • Light Module
      • Map Module
      • Piston Module
      • Programmable Block Module
      • Rotor Module
      • Screen Module
      • Sensor Module
      • Sorter Module
      • Sound Block Module
      • Thruster Module
      • Timer Block Module
    • Command Cheatsheet
    • Compatibility
    • Examples
  • Mother Core (Script Framework)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Architecture Overview
      • Managing Script Size & Complexity
    • Building A Module
    • Console (CLI)
    • Core Modules
      • Activity Monitor
      • Almanac
      • Block Catalogue
      • Clock
      • Command Bus
      • Configuration
      • Event Bus
      • Intergrid Message Service
      • Local Storage
      • Terminal
    • Utilities

      • Color Helper
      • Security
      • Serializer
  • Powered By Mother

Security

This utility can assist with encrypting and decrypting data using a provided passcode. For example, this is used heavily during intergrid communication to ensure communications are secured over channels using passcodes.

  • Encypting Data
  • Decypting Data

Encypting Data

To encrypt data, we use the Encrypt() method. It expects a string to be encypted, with the desired passcode to be used for encyption.

string message = "The Empire must grow";
string passcode = "Z1ON0101"

string encyptedMessage = Security.Encrypt(message, passcode);
// => "##asjjgahas4$@fasjasd#..."

Decypting Data

To decrypt data, we can use the Decrypt() method with a passcode:

string enryptedMessage = "##asjjgahas4$@fasjasd#...";
string passcode = "Z1ON0101"

string decryptedMessage = Security.Decrypt(enryptedMessage, passcode);
// => "The Empire must grow"
Last Updated: 8/8/25, 10:08 PM
Contributors: lukejamesmorrison
Prev
Color Helper
Next
Serializer