ipfs

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*shell.Shell
}

func NewClient

func NewClient(baseURLs ...string) *Client

func (*Client) Decrypt

func (c *Client) Decrypt(hash string, key []byte) ([]byte, error)

根据 hash,从 ipfs 上取出后用 aes256 cbc 解密

func (*Client) Encrypt

func (c *Client) Encrypt(plain []byte, key []byte) (string, error)

用 aes256 cbc 加密后存储到 ipfs 上,返回 hash

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL