Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 428 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 428 Bytes

PHP-XOR-Cipher

The XORCipher class contains three primary methods: cipher(), plaintext(), and crack():

  • cipher($plaintext, $key) will return ciphertext generated from the plaintext and key.

  • plaintext($cipher, $key) will return the original text given the ciphertext and a key.

  • crack($cipher, $keysize) will attempt to crack the ciphertext using frequency analysis.