Coding

RSA Encryption & Decryption on PHP

Generate an RSA keypair with a 4096 bit private key Execute command: openssl genrsa -out private_key.pem 4096 e.g. $ openssl genrsa -out private_key.pem 4096 Generating RSA private key, 4096 bit long modulus .............................++++++ ................................................................++++++ e is 65537 (0x10001) Make sure…

Custom Emoji to WordPress

Replace default smilies of WordPress, insert following code in functions.php file of current theme. // Replace default smilies of WordPress add_filter('smilies_src','fa_smilies_src',1,10); function fa_smilies_src ($img_src, $img, $siteurl){ $img = rtrim($img, "gif"); return get_bloginfo('template_directory') . '/smilies/' . $img . 'png'; } Download…