Redsign qortal-ui repo

This commit is contained in:
AlphaX-Projects
2023-05-11 18:40:52 +02:00
parent edbe674fb9
commit 6d3dbcdfe8
3745 changed files with 20028 additions and 10558 deletions

24
crypto/api/deps/Base64.js Normal file
View File

@@ -0,0 +1,24 @@
const Base64 = {};
Base64.decode = function (string) {
const binaryString = atob(string);
const binaryLength = binaryString.length;
const bytes = new Uint8Array(binaryLength);
for (let i = 0; i < binaryLength; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
const decoder = new TextDecoder();
const decodedString = decoder.decode(bytes);
return decodedString;
};
export default Base64;