MCPcopy
hub / github.com/streetwriters/notesnook / Sodium

Class Sodium

packages/sodium/src/node.ts:464–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464export class Sodium implements ISodium {
465 async initialize() {}
466
467 get crypto_generichash() {
468 return crypto_generichash;
469 }
470
471 get crypto_pwhash() {
472 return crypto_pwhash;
473 }
474
475 get crypto_pwhash_ALG_ARGON2ID13() {
476 return crypto_pwhash_ALG_ARGON2ID13;
477 }
478 get crypto_pwhash_SALTBYTES() {
479 return crypto_pwhash_SALTBYTES;
480 }
481 get crypto_pwhash_ALG_ARGON2I13() {
482 return crypto_pwhash_ALG_ARGON2I13;
483 }
484 get crypto_pwhash_ALG_DEFAULT() {
485 return crypto_pwhash_ALG_DEFAULT;
486 }
487 get crypto_pwhash_OPSLIMIT_INTERACTIVE() {
488 return crypto_pwhash_OPSLIMIT_INTERACTIVE;
489 }
490 get crypto_pwhash_OPSLIMIT_MODERATE() {
491 return crypto_pwhash_OPSLIMIT_MODERATE;
492 }
493 get crypto_pwhash_OPSLIMIT_SENSITIVE() {
494 return crypto_pwhash_OPSLIMIT_SENSITIVE;
495 }
496 get crypto_pwhash_MEMLIMIT_INTERACTIVE() {
497 return crypto_pwhash_MEMLIMIT_INTERACTIVE;
498 }
499 get crypto_pwhash_MEMLIMIT_MODERATE() {
500 return crypto_pwhash_MEMLIMIT_MODERATE;
501 }
502 get crypto_pwhash_MEMLIMIT_SENSITIVE() {
503 return crypto_pwhash_MEMLIMIT_SENSITIVE;
504 }
505
506 // helpers
507 get from_base64() {
508 return from_base64;
509 }
510 get to_base64() {
511 return to_base64;
512 }
513 get randombytes_buf() {
514 return randombytes_buf;
515 }
516 get to_string() {
517 return to_string;
518 }
519 get from_hex() {
520 return from_hex;
521 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected