@@ -26,7 +26,6 @@ Documentation
26
26
* [ Hashing] ( #hashing )
27
27
* [ Random bytes generation] ( #random-bytes-generation )
28
28
* [ Constant-time comparison] ( #constant-time-comparison )
29
- * [ Utilities] ( #utilities )
30
29
* [ Examples] ( #examples )
31
30
* [ System requirements] ( #system-requirements )
32
31
* [ Development and testing] ( #development-and-testing )
70
69
------
71
70
72
71
All API functions accept and return bytes as ` Uint8Array ` s. If you need to
73
- encode or decode strings, use functions from ` nacl.util ` namespace.
72
+ encode or decode strings, use functions from < https://github.com/dchest/tweetnacl-util-js >
73
+ or one of the more robust codec packages.
74
74
75
75
### Public-key authenticated encryption (box)
76
76
@@ -326,30 +326,6 @@ Returns `false` if either of the arguments has zero length, or arguments have
326
326
different lengths, or their contents differ.
327
327
328
328
329
- ### Utilities
330
-
331
- Encoding/decoding functions are provided for convenience. They are correct,
332
- however their performance and wide compatibility with uncommon runtimes is not
333
- something that is considered important compared to the simplicity and size of
334
- implementation. You can use third-party libraries if you need to.
335
-
336
- #### nacl.util.decodeUTF8(string)
337
-
338
- Decodes string and returns ` Uint8Array ` of bytes.
339
-
340
- #### nacl.util.encodeUTF8(array)
341
-
342
- Encodes ` Uint8Array ` or ` Array ` of bytes into string.
343
-
344
- #### nacl.util.decodeBase64(string)
345
-
346
- Decodes Base-64 encoded string and returns ` Uint8Array ` of bytes.
347
-
348
- #### nacl.util.encodeBase64(array)
349
-
350
- Encodes ` Uint8Array ` or ` Array ` of bytes into string using Base-64 encoding.
351
-
352
-
353
329
System requirements
354
330
-------------------
355
331
0 commit comments