historydecryptor

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TagSz size of the tag
	TagSz = 0x10
	// NonceSz size of the nonce
	NonceSz = 0x10

	DefTimeFmt = "2006-01-02 15:04:05Z07:00"
)

Variables

View Source
var ErrNoKey = errors.New("key is not supplied")

Functions

func CalcCallTime

func CalcCallTime(unparsedCallOffset string) time.Time

CalcCallTime calculates the call time.

func Cipher

func Cipher(text, key []byte) ([]byte, error)

Cipher text conforming to ZADDRESS encryption pattern

func Decipher

func Decipher(data, key []byte) ([]byte, error)

Decipher deciphers ZADDRESS from OS X call history.

func DecipherHistory

func DecipherHistory(database string, key []byte, output io.Writer, opts ...Option) (int, error)

DecipherHistory opens the database and writes CSV output to output returns number of rows processed or an error (if any)

func DecodeB64Key

func DecodeB64Key(key []byte) ([]byte, error)

DecodeB64Key decodes the provided key from base64 encoding

func GetByteKey added in v1.1.0

func GetByteKey(keyStr string) ([]byte, error)

Types

type Option added in v1.1.1

type Option func(*outputSettings)

Option is the function signature that allows to modify the CSV output settings.

func OptTimeFormat added in v1.1.1

func OptTimeFormat(f string) Option

OptTimeFormat specifies the time/date output format. (See time package for time format specification).

Jump to

Keyboard shortcuts

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