This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Minimal Spreed WebRTC for Nextcloud server configuration | |
| [app] | |
| ; Change the next four values | |
| sessionSecret = the-default-secret-do-not-keep-me | |
| encryptionSecret = tne-default-encryption-block-key | |
| serverToken = i-did-not-change-the-public-token-boo | |
| extra = /absolute/path/to/nextcloud/apps/spreedme/extra | |
| ; Do not change these three values | |
| plugin = extra/static/owncloud.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IP="127.0.0.1" | |
| PORT="8877" | |
| SHARED_SECRET="shared secret" | |
| OPENSSL="/usr/local/opt/libressl/bin/openssl" | |
| OPENSSL_CMD="$OPENSSL enc -a -A -aes-256-gcm" | |
| while IFS= read -r MSG; do | |
| echo "$MSG" | $OPENSSL_CMD -e -k "$SHARED_SECRET" | |
| echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $crypto = new Crypt('cbe92e0557602e1bf9c05fffe8e54a809c1bdc5b3c3e2011b9153ce0ce672917', 'ok'); | |
| $enc = $crypto->encrypt('secretmessage'); | |
| // Here we prepend an 'a' -> Decryption should fail, i.e. return false | |
| // It should NOT trigger an E_ERROR, as we can't handle that. | |
| $dec = $crypto->decrypt('a' . $enc); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ req ] | |
| default_bits = 4096 | |
| default_md = sha256 | |
| default_keyfile = private.key | |
| distinguished_name = req_distinguished_name | |
| attributes = req_attributes | |
| x509_extensions = v3_user_req | |
| req_extensions = v3_user_req | |
| [ req_distinguished_name ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eufo pipefail | |
| SUDO="" | |
| if [ "$EUID" -ne 0 ]; then | |
| SUDO="sudo" | |
| if ! [ -x "$(command -v $SUDO)" ]; then | |
| echo "Error: Running script as non-root and $SUDO is not installed. Exiting." >&2 | |
| exit 1 |
NewerOlder