[PHP] 암호화 복호화
function set_encrypt($str) { $secret_key = "123456789"; $secret_iv = "#@$%^&*()_+=-"; $key = hash('sha256', $secret_key); $iv = substr(hash('sha256', $secret_iv), 0, 32) ; return str_replace("=", "", base64_encode( openssl_encrypt($str, "AES-256-CBC", $key, 0, $iv)) ); } function set_decrypt($str) { $secret_key = "123456789"; $secret_iv = "#@$%^&*()_+=-"; $key = hash('sha256', $secret_key); $iv ..
2023. 7. 4.