function encrypt($plaintext ) { // hash the key to a fixed length $hashed_key = hash('sha256', 'kDLTzj2QGCenCXW8s44h4ddDjeJiuSP2', true); // pad the plaintext with whitespace to be a multiple of 16 bytes $padded_plaintext = str_pad($plaintext, strlen($plaintext) + 16 - strlen($plaintext) % 16); // encrypt the padded plaintext with the hashed key $iv = openssl_random_pseudo_bytes(16); $ciphertext = openssl_encrypt($padded_plaintext, 'AES-256-CBC', $hashed_key, OPENSSL_RAW_DATA, $iv); $ciphertext = base64_encode($iv . $ciphertext); return $ciphertext; } function decrypt($ciphertext) { // hash the key to a fixed length $hashed_key = hash('sha256', 'kDLTzj2QGCenCXW8s44h4ddDjeJiuSP2', true); // decrypt the ciphertext with the hashed key $ciphertext = base64_decode($ciphertext); $iv = substr($ciphertext, 0, 16); $ciphertext = substr($ciphertext, 16); $padded_plaintext = openssl_decrypt($ciphertext, 'AES-256-CBC', $hashed_key, OPENSSL_RAW_DATA, $iv); $plaintext = rtrim($padded_plaintext, "\0"); return $plaintext; } ?>
The results has been filter on Tags containing English.
ANA has found 1037 results for you, in
90 ms.
Currently showing results 1 to 9.
Didn’t find what you were looking for? Try the Advanced Search!
Hadjilambrou and Bhasin (2017a, June 15). Orchestrating key instruments to succesful collaborations. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/orchestrating-key-instruments-to-succesful-collaborations
Paris and Gupta (2017a, June 15). Resistance is futile, you will be assimilated. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/resistance-is-futile-you-will-be-assimilated
Nestour, A. (2017a, October 26). Paragon partnership with Save the Children UK. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/paragon-partnership-with-save-the-children-uk
Bond, Dominguez and Mammadbayli (2017a, October 26). Turning a corner on negative perceptions of refugees in Europe. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/turning-a-corner-on-negative-perceptions-of-refugees-in-europe-9109
Findlay, K. (2021a, October 25). The Evolution of Market Research into 'Brandtech'. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/the-evolution-of-market-research-into-brandtech-
McPharlin, H. (2018a, September 23). Injecting emotion into campaign effectiveness . ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/injecting-emotion-into-campaign-effectiveness-
Loobuyck and Depoortere (2018a, September 23). Barry Callebaut strikes gold with the chocolate of the future. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/barry-callebaut-strikes-gold-with-the-chocolate-of-the-future
Caldwell, L. (2018a, September 23). Blindfolded, describing an elephant . ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/blindfolded-describing-an-elephant-
Hahn-Griffiths, S. (2018a, May 14). How to win in the reputation economy by applying global insight in reputation to LATAM. ANA - ESOMAR. Retrieved March 31, 2023, from