@sockethub/util 1.0.0-alpha.1 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,14 @@ export declare class Crypto {
23
23
  */
24
24
  deriveSecret(...secrets: string[]): string;
25
25
  randToken(len: number): string;
26
+ /**
27
+ * Random alphanumeric identifier. Use this instead of randToken() for
28
+ * values that end up in Redis key names, logger namespaces, HTTP headers,
29
+ * or shell commands: randToken()'s charset includes `*?[]^@$#!`, which are
30
+ * Redis glob metacharacters and shell specials. randToken() remains the
31
+ * generator for secrets, where the wider charset adds entropy.
32
+ */
33
+ randId(len: number): string;
26
34
  private static ensureSecret;
27
35
  }
28
36
  export declare const crypto: Crypto;