urlb64touint8array

A javscript utility function which converts the base 64 safe encoded string to UInt8Array.

Usage no npm install needed!

<script type="module">
  import urlb64touint8array from 'https://cdn.skypack.dev/urlb64touint8array';
</script>

README

urlb64touint8array

The Uint8Array typed array represents an array of 8-bit unsigned integers. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).

General use case:

Used while exchanging secret key between client and server.

Installation

npm install urlb64touint8array

Usage

import toUint8Array from 'urlb64touint8array';

or

var toUint8Array = require('urlb64touint8array');