前端Base64加密和解密

前端Base64加密和解密

编码:btoa(encodeURIComponent(JSON.stringify({"UserID": "0001"})))
解码:JSON.parse(decodeURIComponent(atob('JTdCJTIyVXNlcklEJTIyJTNBJTIyMDAwMSUyMiU3RA==')))

posted on 2023-05-04 16:17  贪狼木星  阅读(200)  评论(0编辑  收藏  举报

导航