10 lines
375 B
Markdown
10 lines
375 B
Markdown
# How-to
|
|
|
|
```bash
|
|
# encrypt .env with paspaspaps password, '' should given if there is a custom char
|
|
# like !@#$ and friends
|
|
cat .env | openssl enc -a -A -aes-256-cbc -salt -pbkdf2 -pass pass:'paspaspaps' | tee mybin | openssl enc -aes-256-cbc -pbkdf2 -d -a -A
|
|
# one line base64 password is in mybin file
|
|
# last part of the command will check the encryption is OK or NOK
|
|
```
|