deno.land / x / jose@v5.2.4 / util / base64url.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import * as base64url from '../runtime/base64url.ts'
/** * Utility function to encode a string or Uint8Array as a base64url string. * * @param input Value that will be base64url-encoded. */interface Base64UrlEncode { (input: Uint8Array | string): string}/** * Utility function to decode a base64url encoded string. * * @param input Value that will be base64url-decoded. */interface Base64UrlDecode { (input: Uint8Array | string): Uint8Array}
export const encode: Base64UrlEncode = base64url.encodeexport const decode: Base64UrlDecode = base64url.decode
jose

Version Info

Tagged at
a month ago