<?php @unlink('update_appkey.php'); //Required to autoload the namespaces require_once 'vendor/autoload.php'; //Generate APP_KEY and store it in .env file $key = \Defuse\Crypto\Key::createNewRandomKey(); $appsecret = $key->saveToAsciiSafeString(); echo '<appsecret>'.$appsecret.'</appsecret>'; //Generate private/public keypair using openssl functions $key = openssl_pkey_new([ 'digest_alg' => 'aes256', 'private_key_type' => \OPENSSL_KEYTYPE_RSA, 'encrypt_key' => false, 'encrypt_key_cipher' => \OPENSSL_CIPHER_AES_256_CBC, ]); // export private key openssl_pkey_export($key, $priv_key); // export public key $keyData = openssl_pkey_get_details($key); $public_key = $keyData['key']; $private_key = $priv_key; echo '<publickey>'.$public_key.'</publickey>'; echo '<privatekey>'.$private_key.'</privatekey>'; ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
php81 | Folder | 0755 |
|
|
php82 | Folder | 0755 |
|
|
.env | File | 1.24 KB | 0644 |
|
.env.local | File | 312 B | 0644 |
|
.htaccess | File | 459 B | 0644 |
|
.uniqueid.txt | File | 12 B | 0644 |
|
_clone.php | File | 10.76 KB | 0644 |
|
_upgrade.php | File | 4.26 KB | 0644 |
|
_upgrade.xml | File | 327 B | 0644 |
|
backup.php | File | 2.12 KB | 0644 |
|
edit.php | File | 5.17 KB | 0644 |
|
edit.xml | File | 433 B | 0644 |
|
extend.php | File | 9.17 KB | 0644 |
|
fileindex.php | File | 185 B | 0644 |
|
import.php | File | 4.84 KB | 0644 |
|
info.xml | File | 4.09 KB | 0644 |
|
install.js | File | 924 B | 0644 |
|
install.lock | File | 13 B | 0644 |
|
install.php | File | 9.22 KB | 0644 |
|
install.xml | File | 952 B | 0644 |
|
md5 | File | 2.55 KB | 0644 |
|
notes.txt | File | 2.6 KB | 0644 |
|
private.pem | File | 16 B | 0644 |
|
public.pem | File | 15 B | 0644 |
|
update_appkey.php | File | 825 B | 0644 |
|
update_pass.php | File | 541 B | 0644 |
|