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

213
Views
Base64 Decode - Javascript - PHP

I have the next string with base 64 encoded:

aJjueq22q2O202ZzZdpjPO6Cr32p0cc22jeaceupcjd2Z2SuPg2J6rwupOQzS62e3cC2eWS2gC2P232a2p925w==

When I decoded with base64_decode function in PHP I received the next string:

$key = base64_decode($key);
.3K��yd-}ڟv7qr7vgd>

But in JS I did the next:

const key = Buffer.from(key, "base64").toString("ascii");

And I received a different decoded string:

h↑nz-6+cj<.$d3K-▲]@6yd6-☼[}→Z▼vgvgd.>

How is it possible? I need to get a string like the first (PHP)

about 4 years ago · Juan Pablo Isaza
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!