PHP Classes

PHP Transposition Cipher: Encrypt a text shifting the position of characters

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 125 All time: 9,440 This week: 673Up
Version License PHP version Categories
transpositioncipher 1.0.0MIT/X Consortium ...5PHP 5, Cryptography, Text processing
Description 

Author

This class can encrypt a text shifting the position of characters.

It takes a text string and an encryption key as parameters to execute a transposition of the string characters according to the value of the key.

The resulting encryption key is another string with the same characters that appear in shifted positions.

Innovation Award
PHP Programming Innovation award nominee
March 2022
Number 8
Some applications need to encrypt text strings with the secret key so that the resulting encrypted value still uses readable characters.

Shifting the position of the characters in an unpredictable way is an approach to encrypting the text that guarantees that the resulting text string will still be readable.

This package implements a transposition cipher algorithm that can encrypt text using only the original string characters in a different position. Therefore it preserves the readability of the encrypted string characters.

Manuel Lemos
Picture of Gavin Gordon Markowski
  Performance   Level  
Name: Gavin Gordon Markowski <contact>
Classes: 13 packages by
Country: Canada Canada
Age: 36
All time rank: 178541 in Canada Canada
Week rank: 47 Up1 in Canada Canada Up
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files (5)  
File Role Description
Files folder imagesrc (1 file)
Files folder imagetest (1 file)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data

  Files folder image Files (5)  /  src  
File Role Description
  Plain text file TranspositionCipher.php Class Class source

  Files folder image Files (5)  /  test  
File Role Description
  Plain text file TranspositionCipherTest.php Class Class source

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  
 100%
Total:125
This week:0
All time:9,440
This week:673Up