PHP Classes

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

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


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: 290 Up6 in Canada Canada Up
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
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  /  src  
File Role Description
  Plain text file TranspositionCipher.php Class Class source

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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,434
This week:673Up