What do you want to save?
Add Code snippet
New code examples
-
SQL 2022-03-21 08:55:17
LoadError: cannot load such file -- mysql2/2.7/mysql2
rm Gemfile.lock gem uninstall mysql2 gem install mysql2 -v '0.5.2' -- --with-mysql-config=/usr/local/Cellar/[email protected]/5.7.25/bin/mysql_config --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include --platform=ruby bund... Add solution -
PHP 2022-03-18 20:50:20
php two way encrypt decrypt
function encrypt_decrypt($string, $action = 'encrypt') { $encrypt_method = "AES-256-CBC"; $secret_key = 'AA74CDCC2BBRT935136HH7B63C27'; // user define private key $secret_iv = '5fgf5HJ5g27'; // user define secret key $key = hash(... Add solution -
Other 2022-02-25 03:45:02
macos localhost self signed certificate
cd /usr/local/etc/httpd/extra/cert sudo openssl genrsa -out ./localhost.key 2048 sudo openssl rsa -in ./localhost.key -out ./localhost.key.rsa sudo openssl req -new -key ./localhost.key.rsa -subj "/C=ar/ST=caba/L=caba/O=localhost/CN=localhost/" ... Add solution -
Shell/Bash 2022-02-24 10:15:02
openssl read cert
openssl x509 -in certificate.crt -text -noout Add solution -
Other 2022-02-18 05:35:02
openssl_decrypt(): IV passed is 16 bytes long which is longer than the 8 expected by selected cipher, truncating in BF-CBC
$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 -
Python 2022-02-11 16:40:07
sudo apt-get install python3.5
UPDATE Thanks to Don Kirkby who highlight that there is a new recommended PPA. The updated one is ppa:deadsnakes/ppa, so the complete command is the following: sudo add-apt-repository ppa:deadsnakes/ppa If you are using Ubuntu, you can install it adding... Add solution