Download the PHP package krypt0nn/caesar without Composer
On this page you can find all versions of the php package krypt0nn/caesar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download krypt0nn/caesar
More information about krypt0nn/caesar
Files in krypt0nn/caesar
Package caesar
Short Description PHP 7+ implementation of the Caesar's cipher
License GPL-3.0-or-later
Homepage https://github.com/KRypt0nn/caesar
Informations about the package caesar
Caesar
PHP 7+ implementation of the Caesar's cipher
Installation
Using
Function Caesar\caesar
has two arguments: required string $text
and optional (and technically also required) int $offset = 0
. The second parameter defines the step of characters in the alphabet's encoding. If you want to decode some encoded text - you should use the opposite offset parameter you've used in the encoding. As in the example above we encoded text with offset 1234
and decoded it using its opposite value - -1234
. Also we could encode our text with offset -1234
and decode it with 1234
Author: Nikita Podvirnyy