File: 09-debian-replace-encryption-key.patch

package info (click to toggle)
kalkun 0.8.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,340 kB
  • sloc: php: 30,659; javascript: 30,443; sql: 961; sh: 766; xml: 105; makefile: 40
file content (17 lines) | stat: -rw-r--r-- 625 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Replace default upstream encryption key by placeholder
Forwarded: not-needed
Author: Fab Stz <fabstz-it@yahoo.fr>
Last-Update: 2022-03-02

--- a/application/config/config.php
+++ b/application/config/config.php
@@ -338,7 +338,8 @@
 |
 */
 // Kalkun default encryption key, you must change it to random 32 characters in length (128 bits)
-$config['encryption_key'] = hex2bin('F0af18413d1c9e03A6d8d1273160f5Ed');
+require_once('/etc/kalkun/config/encryption_key.php');
+$config['encryption_key'] = hex2bin($kalkun_encryption_key);
 
 /*
 |--------------------------------------------------------------------------