Gibberish AES encryption tools.
Based on https://github.com/mdp/gibberish-aes (MIT) and notes by nbari at dalmp dot com on 15-Jan-2012 07:52 at http://www.php.net/manual/en/function.openssl-decrypt.php
link | https://github.com/mdp/gibberish-aes |
---|---|
link | http://www.php.net/manual/en/function.openssl-decrypt.php |
category | OSS |
package | OSS_Crypt |
copyright | Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland |
license | New BSD License |
decrypt(string $edata, string $password) : string
See tests/OSS/Crypt/GibberishAESTest.php
for examples
string
The encrypted data to decrypt
string
The symmectrical password used for the encryption
string
The original data decrypted (or false on failure)encrypt(string $data, string $password) : string
See tests/OSS/Crypt/GibberishAESTest.php
for examples
string
The data to encrypt
string
The symmectrical password to use for the encryption
string
Base64 encrypted data with embedded (random) salt