-
Notifications
You must be signed in to change notification settings - Fork 16
/
base64_58_32_85_hex.deno.txt
54 lines (41 loc) · 2.38 KB
/
base64_58_32_85_hex.deno.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
BASE64_58_32_85_HEX
VERSION ==> #See Deno doc
#Part of std
#Browser compatible
btoa|atob(STR)->STR2 #Like DOM
@std/encoding/base64.ts #STR <-> base64
encodeBase64
(STR|UINT8ARR|ARRBUFFER)->STR #
decodeBase64(STR)->UINT8ARR #
@std/crypto/to_hash_string.ts #
toHashString(ARRBUFFER, 'base64')
->STR #
@std/encoding/base64url.ts #Same with base64url
encodeBase64Url
(STR|UINT8ARR|ARRBUFFER)->STR #
decodeBase64Url(STR)->UINT8ARR #
@std/encoding/base58.ts #Same with base58
encodeBase58
(STR|UINT8ARR|ARRBUFFER)->STR #
decodeBase58(STR)->UINT8ARR #
@std/encoding/base32.ts #Same with base32
encodeBase32
(STR|UINT8ARR|ARRBUFFER)->STR #
decodeBase32(STR)->UINT8ARR #
@std/encoding/ascii85.ts #Same with base85
encodeAscii85
(STR|UINT8ARR|ARRBUFFER[, OPTS])
->STR #
decodeAscii85
(STR[, OPTS])->UINT8ARR #
OPTS.delimiter #BOOL (def: false). Use delimiters <~ and ~>
OPTS.standard #'Adobe|btoa|RFC 1924|Z85'
@std/encoding/hex.ts #Same with hexadecimal
encodeHex
(STR|UINT8ARR|ARRBUFFER)->STR2 #
decodeHex(STR)->ARRBUFFER #
@std/crypto/to_hash_string.ts #
toHashString(ARRBUFFER[', hex'])
->STR #Returns as hex