lib.crypto-utils
Zero-dependency browser and React Native compatible crypto helpers
@lssm-tech/lib.crypto-utilsbun add @lssm-tech/lib.crypto-utilsManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Builds use the canonical crypto root and retain all eight existing manifest subpaths. Module-closure emission shares hashing/encoding helpers across Node, Bun, and browser entries without adding Node core imports or runtime dependencies. Private source discovery cannot add public exports.
Zero-dependency browser, React Native, Expo, and Bun compatible helpers for SHA hashing, HMAC signatures, random bytes, and UUIDs.
This package intentionally avoids Node core modules and Node polyfill packages.
Workspace consumers resolve the TypeScript sources directly so clean monorepo and Vercel builds do not depend on a pre-existing dist directory. Published archives continue to use the compiled conditional export map from publishConfig.
Canonical JSON digests
@lssm-tech/lib.crypto-utils/canonical exports the existing synchronous canonicalize, digestCanonical and compareCanonicalStrings helpers. Object keys use ordinal ordering, undefined object members are omitted, array order is preserved, and non-finite numbers and unsupported values are rejected. Digests retain the sha256: prefix and lowercase hexadecimal encoding. The LSSM OS runtime canonical subpath forwards to this implementation.
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
0 declarations
No Runtime dependencies are declared here.
Declared capabilities
Zero-dependency browser and React Native compatible crypto helpers
Scripts
cleanrm -rf distlintbun run lint:fixlint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .lint:checknode ../../../scripts/biome.cjs check .publish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildcontractspec-bun-build buildpostbuildnode ./scripts/cleanup-build.mjsprepacknode ./scripts/prepare-package-manifest.mjsbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typesdevcontractspec-bun-build devprebuildcontractspec-bun-build prebuildtypechecktsgo --noEmittestbun testtest:packnode ./scripts/verify-package.mjs