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 Pre-Testing.
ANA has found 159 results for you, in
4680 ms.
Currently showing results 154 to 162.
Didn’t find what you were looking for? Try the Advanced Search!
Greig, I. D. (1991a, June 15). Advertising pretesting. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/advertising-pretesting
Greenhalgh, C. (1966a, September 01). Some techniques and interesting results in discrimination testing. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/some-techniques-and-interesting-results-in-discrimination-testing
Miglani, R. (1996a, March 01). Diagnostic and predictive advertising pre-testing. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/diagnostic-and-predictive-advertising-pre-testing
Gregory, W. (1969a, June 15). Researching research the market for TV commercials pre-testing. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/researching-research-the-market-for-tv-commercials-pre-testing
Pásztor, G. (2008a, November 20). Measuring jokes. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/measuring-jokes
Salgado-Montejo, Velasco, Calvo and Gómez (2012a, May 03). Purchase prediction and brand loyalty. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/purchase-prediction-and-brand-loyalty