A Python utility script that automatically fetches and updates WordPress security keys/salts in wp-config.php file.
- Author 👨💻
- Percio Andrade
- Email: [email protected]
- Website: Zendev : https://zendev.com.br
- Fetches fresh security keys from WordPress.org API 🔄
- Creates backup of existing wp-config.php 💾
- Updates all security keys while preserving file structure 🔐
- Handles cleanup of temporary files 🧹
- Python 3.x
- wp-config.php file in same directory
- Internet connection to access WordPress.org API
- Place script in WordPress root directory
- Run:
python3 saltkey.py
- Automatically creates wp-config.php.bak backup
- Validates wp-config.php existence
- Cleans up temporary files
- Preserves original file structure
- Always backup your WordPress files before running
- Ensure proper file permissions
- Run from WordPress root directory
This project is licensed under the GNU General Public License v2.0