2017 © Pedro Peláez
 

library php-time-lock-encryption

Time Lock Encryption Class

image

arzzen/php-time-lock-encryption

Time Lock Encryption Class

  • Friday, January 12, 2018
  • by arzzen
  • Repository
  • 3 Watchers
  • 4 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Time Lock Encryption Class Build Status Latest Stable Version License

Implementation of timed-release crypto., (*1)

This class can encrypt data using key generated for a time period., (*2)

It takes an expression that defines a given time period and generates a key by creating iteratively hashes of the initial key in a cycle until the specified time as passed., (*3)

The class returns the encrypted data using the Fernet class with the generated key., (*4)

It can also decrypt previously encrypted data by regenerating the encryption key the same number of iterations that it were used to generate the key when the data was encrypted., (*5)

Requirements

  • PHP 5.3.3 or later
  • hash extension
  • openssl or mcrypt extension

Installation

You can install this library by using [Composer]. You can also view more info about this on [Packagist]., (*6)

Add this to the require section in your composer.json file., (*7)

{
    "require": {
        "arzzen/php-time-lock-encryption": "1.1.*"
    }
}

Usage

encrypt('+10 second', $message);
$iterations = $timeLock->getIterations();

$decrypted = $timeLock->decrypt($encrypted, $iterations);

var_dump($message == $decrypted);
?>

The Versions

12/01 2018

dev-master

9999999-dev https://github.com/arzzen/php-time-lock-encryption

Time Lock Encryption Class

  Sources   Download

MIT

The Requires

 

The Development Requires

time encrypt decrypt encryption lock crypt decryption time clock

09/09 2015

1.1.0

1.1.0.0 https://github.com/arzzen/php-time-lock-encryption

Time Lock Encryption Class

  Sources   Download

MIT

The Requires

 

The Development Requires

time encrypt decrypt encryption lock crypt decryption time clock

09/09 2015

dev-psr-4

dev-psr-4 https://github.com/arzzen/php-time-lock-encryption

Time Lock Encryption Class

  Sources   Download

MIT

The Requires

 

The Development Requires

time encrypt decrypt encryption lock crypt decryption time clock