New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@granith/shared

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@granith/shared

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

@granith/shared

Shared TypeScript types and utilities for the Granith secret manager ecosystem.

Installation

bun add @granith/shared

Contents

Types

  • User - User account model
  • Secret - Secret data model
  • Token - Access token model
  • PathGrant - Path-based access grants

Utilities

  • bytesToHex() - Convert Uint8Array to hex string
  • hexToBytes() - Convert hex string to Uint8Array
  • sha256() - SHA-256 hash function
  • generateNonce() - Generate cryptographically secure random nonce

Usage

import type { Secret, User } from '@granith/shared'
import { sha256, bytesToHex } from '@granith/shared/utils'

const hash = await sha256('secret data')
const hex = bytesToHex(hash)

License

MIT

FAQs

Package last updated on 30 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts