About

Get Started

Docs

crypto

import "github.com/gosolid/solid/pkg/runtime/crypto"

Index

type Hash

type Hash struct {
    // contains filtered or unexported fields
}

func NewHash

func NewHash(algorithm string) (*Hash, error)

func (*Hash) Algorithm

func (h *Hash) Algorithm() string

func (*Hash) Sum

func (h *Hash) Sum(b []byte) []byte

func (*Hash) V8FuncDigest

func (h *Hash) V8FuncDigest(in isolates.FunctionArgs) (*isolates.Value, error)

func (*Hash) V8FuncUpdate

func (h *Hash) V8FuncUpdate(in isolates.FunctionArgs) (*isolates.Value, error)

func (*Hash) V8GetAlgorithm

func (h *Hash) V8GetAlgorithm(in isolates.GetterArgs) (*isolates.Value, error)

func (*Hash) Write

func (h *Hash) Write(b []byte) (int, error)

Up next

events