Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 571 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 571 Bytes

secret-key-generator

Description

Standalone repository to generate a secret key suitable for the SECRET_KEY config of eLabFTW.

Note: it is recommended to use one of these two other approaches:

  1. curl "https://get.elabftw.net?key"
  2. docker run --rm -t --entrypoint '/bin/sh' elabftw/elabimg -c "php -d memory_limit=10M -d open_basedir='' bin/init tools:genkey"

Usage

git clone https://github.com/elabftw/secret-key-generator
cd secret-key-generator
composer install
php generate.php

Decrypt

php decrypt $KEY $CIPHERTEXT