PHP Classes

Criptografia Teix: Encode and decode text scrambling the characters

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 243 All time: 8,011 This week: 89Up
Version License PHP version Categories
criptografia-teix 1.0.1Freeware5PHP 5, Text processing
Description 

Author

This is a simple class that can encode and decode text scrambling the characters.

It can take a text string and encode its characters by multiplying their codes by a factor.

The class can also do the opposite, i.e. take a previously encoded string with the same class and revert the process to retrieve the original string before encoding.

Picture of Vinicius Teixeira Souza
  Performance   Level  
Name: Vinicius Teixeira Souza <contact>
Classes: 2 packages by
Country: Brazil Brazil

Example

<?php
   
//Requerindo a Classe a ser utilizada
   
require_once("Criptografia.php");
?>

<html>
<head>
    <meta charset="UTF-8">
    <title>Criptografa Mensagem</title>
</head>
<body>
    <?php
       
//Criando o objeto Criptografia
       
$obj = new CriptografiaTeix();

       
//Variavel contendo a variável a ser criptografada
       
$msg = "VTeixeiraS";

       
//Criptografa e imprime na tela o resultado com uma quebra de Linha
       
echo "Mensagem Criptografada: ".$obj->criptografaMensagem($msg)."<br>";

       
//Descriptografa e imprime na tela o resultado com uma quebra de Linha
       
echo "Mensagem Descriptografada: ".$obj->descriptografaMensagem("258252303315360303315342291249");
   
?>
</body>
</html>


  Files folder image Files (2)  
File Role Description
Plain text file Criptografia.php Class Classe Criptografia
Accessible without login Plain text file index.php Example Página de Exemplo de Uso

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:243
This week:0
All time:8,011
This week:89Up