c0de 0.6.2Diese Seite auf Deutsch

c0de/security ​

The security library keeps secrets in your vault and needs INCLUDE c0de/security.

Every player has a vault while they are online. It vanishes when they leave. A program uses the vault of the player who started it, and only if that player owns the sheet. Otherwise its functions raise VAULT_UNAVAILABLE. Programs read secrets with SECRET lines. A persistent vault keeps secrets in a KeePass file that only your game can open with your password.

Functions ​

  • SET_SECRET: Puts a secret into your vault.
  • DELETE_SECRET: Removes a secret from your vault.
  • HAS_SECRET: Checks whether your vault has a secret.
  • CREATE_VAULT: Creates your persistent vault and opens it.
  • OPEN_VAULT: Opens your persistent vault and adds its secrets to your vault.
  • HAS_VAULT: Checks whether you have a persistent vault.
  • IS_VAULT_OPEN: Checks whether your persistent vault is open.