PHP code example of kkiernan / caesar-cipher
1. Go to this page and download the library: Download kkiernan/caesar-cipher library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kkiernan / caesar-cipher example snippets
$cipher = new KKiernan\CaesarCipher();
$ciphertext = $cipher->encrypt('This is a plain text message that will be encrypted!', 8);
$plaintext = $cipher->decrypt($ciphertext, 8);
$key = $cipher->crack('Max wtrl tkx zxmmbgz lahkm tztbg.');
$plaintext = $this->decrypt($ciphertext, $key);