logo

Functions

encrypt_caesar(string your_text, int number)

function encrypt_caesar returns string of characters encrypted by Caesars method.

This is done by shifting characters from string your_text by an intnumber.

Opposite to this function is function decrypt_caesar.


Usage example

	
	<?php 
		echo encrypt_caesar("THIS IS CAESAR ENCRYPTION!", 10)."<br>"; //	Increments the number of characters
		echo decrypt_caesar("THIS IS CAESAR DECRYPTION!", 10)."<br>"; //	Decrements the number of characters
		
		//for a better example:
		$_enc = encrypt_caesar("THIS IS CAESAR ENCRYPTION!",10);
		$_dec = decrypt_caesar($_enc,10);
		
		echo "<br>". $_enc." == ".$_dec;
	?> 

Showtime!

^RS]*S]*MKO]K\*OXM\cZ^SYX+
J>?I?I97;I7H:;9HOFJ?ED

^RS]*S]*MKO]K\*OXM\cZ^SYX+ == THIS IS CAESAR ENCRYPTION!