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 Usage .
ANA has found 42 results for you, in
8416 ms.
Currently showing results 1 to 9.
Didn’t find what you were looking for? Try the Advanced Search!
, C. (1976a, June 01). Qualitative research on Nutty. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/qualitative-research-on-nutty
, C. (1979a, May 01). Qualitative research on 'Blue Line' advertising. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/qualitative-research-on-blue-line-advertising
, C. (1973a, March 08). Qualitative research on attitudes to setting lotions. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/qualitative-research-on-attitudes-to-setting-lotions
, C. (1973a, November 25). Freeze-dried mushrooms. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/freeze-dried-mushrooms
, C. (1973a, July 01). Depth research on high impact toothpaste. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/depth-research-on-high-impact-toothpaste
, C. (1979a, May 01). Motivational research on London Transport faresavers. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/motivational-research-on-london-transport-faresavers
, C. (1979a, July 01). Peanuts diagnostic research. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/peanuts-diagnostic-research
, C. (1973a, March 08). Qualitative research on skin care concepts. ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/qualitative-research-on-skin-care-concepts
, C. (1973a, August 07). Qualitative research on new press advertisements for 'Vedra' . ANA - ESOMAR. Retrieved March 31, 2023, from
https://ana.esomar.org/documents/qualitative-research-on-new-press-advertisements-for-vedra-