# set

Set a key-value pair in the Secret.

```rhai
secret.set(key, value) -> Secret
```

## Parameters

- `key` (string): Secret key
- `value` (string): Secret value

## Returns

Returns the `Secret` builder for method chaining.

## Examples

```rhai
let secret = namespace.secret("db-credentials")
    .set("username", "admin")
    .set("password", "verysecret123")
    .set("api_key", "abc123xyz")
    .apply();
```

## Notes

- This is a chainable method
- Can be called multiple times to add multiple key-value pairs
- Values are automatically base64 encoded when stored
