data

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package data provides utilities for interacting with database data throughout Write.as.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(k, ciphertext []byte) ([]byte, error)

Decrypt decrypts the given ciphertext with the given key k.

func Encrypt

func Encrypt(k []byte, text string) ([]byte, error)

Encrypt AES-encrypts given text with the given key k. This is used for encrypting sensitive information in the database, such as oAuth tokens and email addresses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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