Adding extra data to shortcode attributes and pass it to JS with wp_localize_script

First, Thank you Jacob Peattie for your help.

I decided to solve this issue partly (the data being easily readable) with encoding the data using base64_encode() & json_encode() in php and decoding it in javascript with JSON.parse() & atob().