# Security

This page explains what BitHut does to keep your keys, your account and your projects' data safe, and where the data is. What BitHut keeps about you is in the [Privacy policy](/privacy).

## Keys and passwords

- **They never go through the chat.** When a project needs a key, your AI gives you a link to the cabinet, and you paste the value there. If an AI still sends a value in the chat, BitHut does not save it.
- **The `.env` file is never uploaded.** BitHut leaves it out of every upload. To move its keys, your AI gives you a one-time command that sends them straight to BitHut, and only the names come back.
- **BitHut never shows a key back.** In the cabinet a saved key shows as "saved, hidden", and your AI sees only names. In logs, values of your keys are cut after the first 4 characters.
- **Stored encrypted.** A key saved before the project's first deploy is kept encrypted until the project exists, then moved into the project's settings.

## Your site is private until you decide

A new site opens only with a password. Visitors enter it on a BitHut page, and their browser remembers it for 30 days. After the first deploy BitHut asks once whether everyone can open the site; until you answer, it stays closed. You can open single pages, like a form or a webhook, and keep the rest closed. The password is shown to you in the cabinet, not to your AI.

At its BitHut address a site is hidden from search engines.

## Signing in

You sign in with Google, GitHub, or an e-mail and a password.

- An account is created only after the e-mail is proven. With an e-mail, BitHut sends a 6-digit code that works for 15 minutes.
- A password needs at least 15 characters, with no rules about kinds of characters. A few words in a row work well.
- Passwords found in known leaks are refused. BitHut checks this without sending your password anywhere: only the first 5 characters of its hash leave the server.
- Passwords are stored only as a salted hash, never as text.
- Setting a new password with a code from your mailbox signs you out on other devices.

## Projects are kept apart

Each project runs in its own sandbox. Projects cannot connect to the server they run on, and cannot send mail straight to other mail servers.

## Backups

Project data is backed up every night. How long backups are kept depends on your plan, from 7 days on Start; see [Plans and billing](/docs/billing). Each backup is encrypted on the server before it is sent to storage. Restore points are covered in [Data](/docs/data).

## Where your data is

| What | Where |
|---|---|
| Your projects and BitHut itself | Hetzner servers in the European Union. Your project's details show the region. |
| Backups | Contabo storage in the European Union |

Other services BitHut works with, such as Stripe for payments, are listed in the [Privacy policy](/privacy).

## Deleting a project

When you delete a project, its data stays recoverable through BitHut support for 7 days. After that it is gone, backups too.
