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
stringThe encrypted data to decrypt
stringThe symmectrical password used for the encryption
stringThe original data decrypted (or false on failure)encrypt(string $data, string $password) : string
See tests/OSS/Crypt/GibberishAESTest.php for examples
stringThe data to encrypt
stringThe symmectrical password to use for the encryption
stringBase64 encrypted data with embedded (random) salt