What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-05 01:23:10
ssl server python
1. openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem 2. Use the Code import BaseHTTPServer, SimpleHTTPServer import ssl httpd = BaseHTTPServer.HTTPServer(('localhost', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler) httpd.socket =... Add solution -
SQL 2021-11-03 16:29:15
python mysqlclient library not found for -lssl
// FOR PYTHON2.7 /* Locate openssl with command */ brew info openssl /* and copy into */ ~/.zshrc/ /* this lines */ export LDFLAGS="-L/usr/local/opt/*/lib" export CPPFLAGS="-I/usr/local/opt/*/include" /* then */ source ~/.zshrc/ /... Add solution -
Other 2021-11-03 01:08:07
openssl_encrypt
$textToEncrypt = "My super secret information."; $encryptionMethod = "AES-256-CBC"; // AES is used by the U.S. gov't to encrypt top secret documents. $secretHash = "25c6c7ff35b9979b151f2136cd13b0ff"; //To encrypt $encrypted... Add solution -
PHP 2021-11-02 18:46:13
Admob server-side verification php
// Google admob public key $verifier_keys = '{"keys":[{"keyId":3335741209,"pem":"-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE+nzvoGqvDeB9+SzE6igTl7TyK4JB\nbglwir9oTcQta8NuG26ZpZFxt+F2NDk7asTE6/2Yc8i1A... Add solution -
PHP 2021-10-28 03:59:13
install pdo mysql in alpine-apache php 5.6
FROM php:5-fpm-alpine RUN apk add --no-cache git bash tini memcached php5-pcntl php5-common php5-openssl php5-json php5-phar php5-zlib php5-xml php5-curl php5-dom php5-pdo php5-memcache php5-mysql php5-pdo_mysql \ && docker-php-ext-install... Add solution -
Javascript 2021-10-26 06:50:08
data at transit encrypting nodejs stack overflow
var crypto = require('crypto'); var assert = require('assert'); var algorithm = 'aes256'; // or any other algorithm supported by OpenSSL var key = 'password'; var text = 'I love kittens'; var cipher = crypto.createCipher(algorithm, key); var encrypted... Add solution