# Function: generateSpaceKey()

```ts
function generateSpaceKey(): Promise<SpaceKey>;
```

Defined in: [packages/core/src/privacy/space-encryption.ts:74](https://github.com/leifriksheim/minca/blob/main/core/src/privacy/space-encryption.ts#L74)

A new random space key

## Returns

`Promise`\<[`SpaceKey`](https://minca.dev/api/core/interfaces/SpaceKey.md)\>
