Skip to content

Scheduling infrastructure for absolutely everyone.

docs: calendso encryption key of length 24 (#23045)

Bandhan Majumder9d9a85ddd94b
diff --git a/.env.example b/.env.example
index 72dc1ea40ad..c14b676e354 100644
--- a/.env.example
+++ b/.env.example
@@ -94,7 +94,7 @@ CRON_ENABLE_APP_SYNC=false
# Application Key for symmetric encryption and decryption
# must be 32 bytes for AES256 encryption algorithm
-# You can use: `openssl rand -base64 32` to generate one
+# You can use: `openssl rand -base64 24` to generate one
CALENDSO_ENCRYPTION_KEY=
# Intercom Config
diff --git a/README.md b/README.md
index addd2d8cc5b..abfd746bbe5 100644
--- a/README.md
+++ b/README.md
@@ -148,7 +148,7 @@ Here is what you need to be able to run Cal.com.
- Duplicate `.env.example` to `.env`
- Use `openssl rand -base64 32` to generate a key and add it under `NEXTAUTH_SECRET` in the `.env` file.
- - Use `openssl rand -base64 32` to generate a key and add it under `CALENDSO_ENCRYPTION_KEY` in the `.env` file.
+ - Use `openssl rand -base64 24` to generate a key and add it under `CALENDSO_ENCRYPTION_KEY` in the `.env` file.
5. Setup Node
If your Node version does not meet the project's requirements as instructed by the docs, "nvm" (Node Version Manager) allows using Node at the version required by the project:
diff --git a/deploy/install.sh b/deploy/install.sh
index 47a786ca1e9..a3e285233e6 100755
--- a/deploy/install.sh
+++ b/deploy/install.sh
@@ -4,7 +4,7 @@ set -xeuf -o pipefail
cp .env.example .env
sed -i 's|NEXTAUTH_SECRET=.*|NEXTAUTH_SECRET='"$(openssl rand -base64 32)"'|g' .env
-sed -i 's|CALENDSO_ENCRYPTION_KEY=.*|CALENDSO_ENCRYPTION_KEY='"$(openssl rand -base64 32)"'|g' .env
+sed -i 's|CALENDSO_ENCRYPTION_KEY=.*|CALENDSO_ENCRYPTION_KEY='"$(openssl rand -base64 24)"'|g' .env
yarn
./deploy/codespaces/install.sh
\ No newline at end of file