| title | Create a Database: Encrypted |
|---|---|
| sidebar_label | Encrypted |
| sidebar_position | 1 |
import Admonition from '@theme/Admonition'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import CodeBlock from '@theme/CodeBlock'; import LanguageSwitcher from "@site/src/components/LanguageSwitcher"; import LanguageContent from "@site/src/components/LanguageContent";
-
Encrypted databases in RavenDB use Daniel J. Bernstein's XChaCha20-Poly1305 authenticated encryption algorithm. They are encrypted at rest and by default, also in transit.
-
Encryption is possible only if security authentication is enabled and a server certificate is defined.
-
Learn more about encryption in: Encryption At Rest.
Learn how to enable authentication manually in: Manual Certificate Configuration.
Learn about the secret key in: Secret Key Management.
-
Click the Databases tab.
-
Click the New database button.

-
Name
Give this database a meaningful name. -
Encryption
Toggle to activate encryption on the new database. When it is activated, the Encryption Configuration view with the key and QR code should open. -
Key
- This is the base 64 key generated by the server.
- A different new key can be generated by the server when clicking the
refreshbutton. - Learn more about this key in: Secret Key Management
- QR Code
- The QR code representing the key
-
Confirm that you've securely saved the key
- You will not have access to the database if the key is lost.
- Download, print, or copy and save the key in a safe place. It will not be available again!
-
