2023-03-02から1日間の記事一覧
ブラウザのJavaScriptで文字列をBase64でエンコード、デコードする方法 btoa(String.fromCharCode.apply(null, new TextEncoder().encode("猫"))); "54yr8J+QiA==" new TextDecoder().decode(new Uint8Array(Array.from(atob("54yr8J+QiA==")).map(s=>s.char…
ブラウザのJavaScriptで文字列をBase64でエンコード、デコードする方法 btoa(String.fromCharCode.apply(null, new TextEncoder().encode("猫"))); "54yr8J+QiA==" new TextDecoder().decode(new Uint8Array(Array.from(atob("54yr8J+QiA==")).map(s=>s.char…