Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

839
Views
How do I encrypt (sha256 hash) a variable in Google Tag Manager?

I'd like hash the user ids I send from local storage to 3P tools/partners from Google Tag Manager. Here's the JavaScript I have written (unhashed). How do I hash this using sha256?

function() {
    try {
    return localStorage.getItem('__user_id').replace(/["']/g, "");
    }catch(e) {
        return "";
    }
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Hello and welcome to the community, I think in your position, you may find this helpful: Are there any SHA-256 javascript implementations that are generally considered trustworthy?

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!