i wonder if this is too long

This commit is contained in:
hexahigh 2023-08-24 16:16:12 +02:00
parent f105d0b85d
commit 503db4a754
3 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,8 @@ function createMethod() {
out2 = btoa(stringToBinary(urlInput.value))
} else if (method.value == "b64_binary_double") {
out2 = btoa(stringToBinary(btoa(stringToBinary(urlInput.value))))
} else if (method.value == "b64_binary_quadruple") {
out2 = btoa(stringToBinary(btoa(stringToBinary(btoa(stringToBinary(btoa(stringToBinary(urlInput.value))))))))
}
return out2
}

View File

@ -25,6 +25,7 @@
<option value="binary">Binary</option>
<option value="b64_binary">Binary + Base64</option>
<option value="b64_binary_double">Binary + Base64 * 2</option>
<option value="b64_binary_double">Binary + Base64 * 4</option>
</select>
<br>
<button id="createButton">Create url</button>

View File

@ -41,6 +41,8 @@ function checkType() {
c = atob(binaryToString(c))
} else if (t == "b64_binary_double") {
c = binaryToString(atob(binaryToString(atob(c))))
} else if (t == "b64_binary_quadruple") {
c = binaryToString(atob(binaryToString(atob(binaryToString(atob(binaryToString(atob(c))))))))
}
}