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 Promotion Effectiveness.
ANA has found 25 results for you, in
889 ms.
Currently showing results 1 to 9.
Didn’t find what you were looking for? Try the Advanced Search!
Stapel, J. (1956a, June 15). Research can and does help advertising. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/research-can-and-does-help-advertising
Kling, A. (1976a, June 15). "What if" this promotion had not been run at all?. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/-what-if-this-promotion-had-not-been-run-at-all-
Schmidt, H. C. (1978a, September 01). A new tool to better plan and control the marketing-activities for the 'outlet' of growing importance. ANA - ESOMAR. Retrieved March 31, 2023, from
Sampson, P. (1980a, June 15). The evaluation of below-the-line activity by ad hoc field research . ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/the-evaluation-of-below-the-line-activity-by-ad-hoc-field-research-
Barbat and Batlle (1987a, June 15). Control of the effectiveness of "sampling" through a consumer panel. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/control-of-the-effectiveness-of-sampling-through-a-consumer-panel
Andriessens, J. E. (1976a, June 15). Introduction. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/introduction-1504
McLellan, I. (1979a, November 01). Star track. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/star-track
Matthews, M. (1971a, June 15). Some comments . ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/some-comments-
Ehrenberg, A. S. (1976a, June 15). Learning about promotions. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/learning-about-promotions