2017 © Pedro Peláez
 

library crypt-time-php

CryptTime-PHP is a simple class to encrypt string with timeout. the encryption use AES128/PKCS7.

image

kittinan/crypt-time-php

CryptTime-PHP is a simple class to encrypt string with timeout. the encryption use AES128/PKCS7.

  • Sunday, October 5, 2014
  • by kittinan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

CryptTime-PHP

Build Status Coverage Status License, (*1)

CryptTime-PHP is a simple class to encrypt string with timeout. the encryption use AES128/PKCS7., (*2)

Requirement

  • PHP 5.3+
  • php-mcrypt

Composer

This plugin on the Packagist., (*3)

https://packagist.org/packages/kittinan/crypt-time-php, (*4)

Quick Start.


$plainText = 'Hello World'; $cryptTime = \KS\CryptTime::getInstance(); $cipherText = $cryptTime->encrypt($plainText); //Default timeout is 86400 seconds (1 day) $decryptText = $cryptTime->decrypt($cipherText);

if you want to encrypt string with 10 minutes timeout., (*5)


$plainText = 'Hello World'; $cryptTime = \KS\CryptTime::getInstance(); $cipherText = $cryptTime->encrypt($plainText, 600); //10 minutes = 600 seconds $decryptText = $cryptTime->decrypt($cipherText);

you can set IV and Key, (*6)


$cryptTime = \KS\CryptTime::getInstance(); $cryptTime->setIV('MyNewInitialValue'); $cryptTime->setKey('MyNewKeyMyNewKeyMyNewKey');

License

The MIT License (MIT), (*7)

The Versions

05/10 2014

dev-master

9999999-dev

CryptTime-PHP is a simple class to encrypt string with timeout. the encryption use AES128/PKCS7.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

10/09 2014

1.0.0

1.0.0.0

CryptTime-PHP is a simple class to encrypt string with timeout. the encryption use AES128/PKCS7.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires