2017 © Pedro Peláez
 

library cipher

Cipher encrypt/decrypt. Encrypt and decrypt private strings. Useful if you need to store a string as a hash but need to see it as plain text also. DO NOT USE FOR PASSWORD AUTHENTICATION!

image

affinity4/cipher

Cipher encrypt/decrypt. Encrypt and decrypt private strings. Useful if you need to store a string as a hash but need to see it as plain text also. DO NOT USE FOR PASSWORD AUTHENTICATION!

  • Sunday, April 8, 2018
  • by Affinity4
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 100 % Grown

The README.md

Affinity4 Cipher

Encrypt and decrypt private strings. Useful if you need to store a string as a hash but need to see it as plain text also., (*1)

DO NOT USE FOR PASSWORD AUTHENTICATION!, (*2)

Installation

Composer

composer require affinity4/cipher

Usage

// Used by both excrypt and decrypt methods, so should be available globally
// Perhaps as an environment variable
$key = 'b1f1e6225cb2b6d0230b16125e45ca63';
$str = 'my secret';

$encrypted = \Affinity4\Cipher\Cipher::encrypt($str, $key); // piqwpeiqep12801aqwie0248quqjowq==
$decrypted = \Affinity4\Cipher\Cipher::decrypt($encrypted, $key); // my secret

Licence

MIT 2018 Luke Watts, (*3)

The Versions

08/04 2018

dev-master

9999999-dev

Cipher encrypt/decrypt. Encrypt and decrypt private strings. Useful if you need to store a string as a hash but need to see it as plain text also. DO NOT USE FOR PASSWORD AUTHENTICATION!

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Luke Watts

08/04 2018

1.0.0

1.0.0.0

Cipher encrypt/decrypt. Encrypt and decrypt private strings. Useful if you need to store a string as a hash but need to see it as plain text also. DO NOT USE FOR PASSWORD AUTHENTICATION!

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Luke Watts