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 Authors containing Gerard Loosschilder.
ANA has found 5 results for you, in
32530 ms.
Currently showing results 1 to 5.
Didn’t find what you were looking for? Try the Advanced Search!
Loosschilder, G. (1995a, June 15). Concept testing of product design proposals. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/concept-testing-of-product-design-proposals
Ortt and Loosschilder (1994a, September 01). The effect of the realism of product representations on the validity of consumer evaluations. ANA - ESOMAR. Retrieved March 31, 2023, from
Tello, Solano and Loosschilder (2014a, June 15). The most effective promotion (Spanish). ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/the-most-effective-promotion-spanish-
Stokmans and Loosschilder (1996a, September 01). The interactive concept test . ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/the-interactive-concept-test-
Loosschilder, Tello and Solano (2014a, April 04). The most effective promotion. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/the-most-effective-promotion