Files
virtuallan/scripts/generate_key.sh
lucheng 6460f1d8e5 Make AES key configurable
1. Use SetAESKey to set AES key
2. Check config.yaml and make port and log info with default value
3. Make will generate new random AES key in config.yaml
2024-06-27 15:35:49 +08:00

5 lines
151 B
Bash
Executable File

#!/bin/bash
key=`/usr/bin/hexdump -vn8 -e'4/4 "%08X" 1 "\n"' /dev/urandom | sed 's/ //g'`
sed -i "s/B5FFCEE73EF298A4/$key/g" ../../config/config.yaml