JAVASCRIPT   8

base64_decode.js

Guest on 23rd August 2021 04:50:40 PM

  1. /**<dependency>[ base64_decode , base64_encode ]</dependency>**/
  2. function base64_decode (str) {
  3.     return decodeURIComponent(Array.prototype.map.call(atob(str), function(c) {
  4.         return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  5.     }).join(''));
  6. };

Raw Paste


Login or Register to edit or fork this paste. It's free.