breaker

package
v0.0.0-...-5e96e92 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Breaker

type Breaker interface {
	// New(filename string, passMaxLength uint) (*Breaker, error)
	BruteForce(time.Duration) ([]byte, error)
	IsEncrypted() (bool, error)
}

Breaker ... interface representing a PDF breaker object

func NewBreaker

func NewBreaker(filename string, passMaxLength uint) (Breaker, error)

NewBreaker ... Create new PDF breaker

type PDFBreaker

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

PDFBreaker ...

func (*PDFBreaker) BruteForce

func (breaker *PDFBreaker) BruteForce(timeout time.Duration) ([]byte, error)

BruteForce ... timeout -> timeout time in time.Duration

func (*PDFBreaker) GetPassMaxLength

func (breaker *PDFBreaker) GetPassMaxLength() uint

GetPassMaxLength ...

func (*PDFBreaker) IsEncrypted

func (breaker *PDFBreaker) IsEncrypted() (bool, error)

IsEncrypted ...

Jump to

Keyboard shortcuts

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