cryptoguess

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvailableExperiments []ExperimentFunc

Functions

This section is empty.

Types

type BASE64Block added in v1.2.0

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

func (BASE64Block) Input added in v1.2.0

func (exp BASE64Block) Input() []byte

func (BASE64Block) Name added in v1.2.0

func (exp BASE64Block) Name() string

func (BASE64Block) Results added in v1.2.0

func (exp BASE64Block) Results() []Result

func (BASE64Block) Run added in v1.2.0

func (exp BASE64Block) Run()

func (BASE64Block) Short added in v1.2.0

func (exp BASE64Block) Short() string

func (BASE64Block) String added in v1.2.0

func (exp BASE64Block) String() string

type Experiment

type Experiment interface {
	Name() string
	Input() []byte
	Results() []Result
	Short() string
	String() string
	Run()
}

func NewBASE64Block added in v1.2.0

func NewBASE64Block(input []byte) Experiment

func NewJWTSignedToken added in v1.2.0

func NewJWTSignedToken(input []byte) Experiment

func NewPEMBlock added in v1.1.0

func NewPEMBlock(input []byte) Experiment

func NewSSHAuthorizedKey added in v1.1.0

func NewSSHAuthorizedKey(input []byte) Experiment

func NewX509CRL added in v1.2.0

func NewX509CRL(input []byte) Experiment

func NewX509Certificate added in v1.2.0

func NewX509Certificate(input []byte) Experiment

func NewX509CertificateRequest added in v1.2.0

func NewX509CertificateRequest(input []byte) Experiment

func NewX509Certificates added in v1.2.0

func NewX509Certificates(input []byte) Experiment

func NewX509DERCRL added in v1.2.0

func NewX509DERCRL(input []byte) Experiment

func NewX509ECPrivateKey added in v1.2.0

func NewX509ECPrivateKey(input []byte) Experiment

func NewX509PKCS1PrivateKey added in v1.2.0

func NewX509PKCS1PrivateKey(input []byte) Experiment

func NewX509PKCS1PublicKey added in v1.2.0

func NewX509PKCS1PublicKey(input []byte) Experiment

func NewX509PKCS8PrivateKey added in v1.2.0

func NewX509PKCS8PrivateKey(input []byte) Experiment

func NewX509PKIXPublicKey

func NewX509PKIXPublicKey(input []byte) Experiment

type ExperimentFunc

type ExperimentFunc func(input []byte) Experiment

type JWTSignedToken added in v1.2.0

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

func (JWTSignedToken) Input added in v1.2.0

func (exp JWTSignedToken) Input() []byte

func (JWTSignedToken) Name added in v1.2.0

func (exp JWTSignedToken) Name() string

func (JWTSignedToken) Results added in v1.2.0

func (exp JWTSignedToken) Results() []Result

func (JWTSignedToken) Run added in v1.2.0

func (exp JWTSignedToken) Run()

func (JWTSignedToken) Short added in v1.2.0

func (exp JWTSignedToken) Short() string

func (JWTSignedToken) String added in v1.2.0

func (exp JWTSignedToken) String() string

type PEMBlock added in v1.1.0

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

func (PEMBlock) Input added in v1.1.0

func (exp PEMBlock) Input() []byte

func (PEMBlock) Name added in v1.1.0

func (exp PEMBlock) Name() string

func (PEMBlock) Results added in v1.1.0

func (exp PEMBlock) Results() []Result

func (PEMBlock) Run added in v1.1.0

func (exp PEMBlock) Run()

func (PEMBlock) Short added in v1.1.0

func (exp PEMBlock) Short() string

func (PEMBlock) String added in v1.1.0

func (exp PEMBlock) String() string

type ParsedJWTSignedToken added in v1.2.0

type ParsedJWTSignedToken struct {
	Token  *jwt.JSONWebToken
	Claims map[string]interface{}
}

type ParsedSSHAuthorizedKey added in v1.1.0

type ParsedSSHAuthorizedKey struct {
	PublicKey ssh.PublicKey
	Comment   string
	Options   []string
}

type Question

type Question struct {
	Experiments []Experiment
}

func New

func New(input []byte) Question

func (*Question) Short added in v1.1.0

func (q *Question) Short() string

type Result added in v1.1.0

type Result interface {
	Name() string
	Data() interface{}
	Err() error
	Confidence() float64
	String() string
	Short() string
	Rest() []byte
}

type SSHAuthorizedKey added in v1.1.0

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

func (SSHAuthorizedKey) Input added in v1.1.0

func (exp SSHAuthorizedKey) Input() []byte

func (SSHAuthorizedKey) Name added in v1.1.0

func (exp SSHAuthorizedKey) Name() string

func (SSHAuthorizedKey) Results added in v1.1.0

func (exp SSHAuthorizedKey) Results() []Result

func (SSHAuthorizedKey) Run added in v1.1.0

func (exp SSHAuthorizedKey) Run()

func (SSHAuthorizedKey) Short added in v1.1.0

func (exp SSHAuthorizedKey) Short() string

func (SSHAuthorizedKey) String added in v1.1.0

func (exp SSHAuthorizedKey) String() string

type X509CRL added in v1.2.0

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

func (X509CRL) Input added in v1.2.0

func (exp X509CRL) Input() []byte

func (X509CRL) Name added in v1.2.0

func (exp X509CRL) Name() string

func (X509CRL) Results added in v1.2.0

func (exp X509CRL) Results() []Result

func (X509CRL) Run added in v1.2.0

func (exp X509CRL) Run()

func (X509CRL) Short added in v1.2.0

func (exp X509CRL) Short() string

func (X509CRL) String added in v1.2.0

func (exp X509CRL) String() string

type X509Certificate added in v1.2.0

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

func (X509Certificate) Input added in v1.2.0

func (exp X509Certificate) Input() []byte

func (X509Certificate) Name added in v1.2.0

func (exp X509Certificate) Name() string

func (X509Certificate) Results added in v1.2.0

func (exp X509Certificate) Results() []Result

func (X509Certificate) Run added in v1.2.0

func (exp X509Certificate) Run()

func (X509Certificate) Short added in v1.2.0

func (exp X509Certificate) Short() string

func (X509Certificate) String added in v1.2.0

func (exp X509Certificate) String() string

type X509CertificateRequest added in v1.2.0

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

func (X509CertificateRequest) Input added in v1.2.0

func (exp X509CertificateRequest) Input() []byte

func (X509CertificateRequest) Name added in v1.2.0

func (exp X509CertificateRequest) Name() string

func (X509CertificateRequest) Results added in v1.2.0

func (exp X509CertificateRequest) Results() []Result

func (X509CertificateRequest) Run added in v1.2.0

func (exp X509CertificateRequest) Run()

func (X509CertificateRequest) Short added in v1.2.0

func (exp X509CertificateRequest) Short() string

func (X509CertificateRequest) String added in v1.2.0

func (exp X509CertificateRequest) String() string

type X509Certificates added in v1.2.0

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

func (X509Certificates) Input added in v1.2.0

func (exp X509Certificates) Input() []byte

func (X509Certificates) Name added in v1.2.0

func (exp X509Certificates) Name() string

func (X509Certificates) Results added in v1.2.0

func (exp X509Certificates) Results() []Result

func (X509Certificates) Run added in v1.2.0

func (exp X509Certificates) Run()

func (X509Certificates) Short added in v1.2.0

func (exp X509Certificates) Short() string

func (X509Certificates) String added in v1.2.0

func (exp X509Certificates) String() string

type X509DERCRL added in v1.2.0

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

func (X509DERCRL) Input added in v1.2.0

func (exp X509DERCRL) Input() []byte

func (X509DERCRL) Name added in v1.2.0

func (exp X509DERCRL) Name() string

func (X509DERCRL) Results added in v1.2.0

func (exp X509DERCRL) Results() []Result

func (X509DERCRL) Run added in v1.2.0

func (exp X509DERCRL) Run()

func (X509DERCRL) Short added in v1.2.0

func (exp X509DERCRL) Short() string

func (X509DERCRL) String added in v1.2.0

func (exp X509DERCRL) String() string

type X509ECPrivateKey added in v1.2.0

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

func (X509ECPrivateKey) Input added in v1.2.0

func (exp X509ECPrivateKey) Input() []byte

func (X509ECPrivateKey) Name added in v1.2.0

func (exp X509ECPrivateKey) Name() string

func (X509ECPrivateKey) Results added in v1.2.0

func (exp X509ECPrivateKey) Results() []Result

func (X509ECPrivateKey) Run added in v1.2.0

func (exp X509ECPrivateKey) Run()

func (X509ECPrivateKey) Short added in v1.2.0

func (exp X509ECPrivateKey) Short() string

func (X509ECPrivateKey) String added in v1.2.0

func (exp X509ECPrivateKey) String() string

type X509PKCS1PrivateKey added in v1.2.0

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

func (X509PKCS1PrivateKey) Input added in v1.2.0

func (exp X509PKCS1PrivateKey) Input() []byte

func (X509PKCS1PrivateKey) Name added in v1.2.0

func (exp X509PKCS1PrivateKey) Name() string

func (X509PKCS1PrivateKey) Results added in v1.2.0

func (exp X509PKCS1PrivateKey) Results() []Result

func (X509PKCS1PrivateKey) Run added in v1.2.0

func (exp X509PKCS1PrivateKey) Run()

func (X509PKCS1PrivateKey) Short added in v1.2.0

func (exp X509PKCS1PrivateKey) Short() string

func (X509PKCS1PrivateKey) String added in v1.2.0

func (exp X509PKCS1PrivateKey) String() string

type X509PKCS1PublicKey added in v1.2.0

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

func (X509PKCS1PublicKey) Input added in v1.2.0

func (exp X509PKCS1PublicKey) Input() []byte

func (X509PKCS1PublicKey) Name added in v1.2.0

func (exp X509PKCS1PublicKey) Name() string

func (X509PKCS1PublicKey) Results added in v1.2.0

func (exp X509PKCS1PublicKey) Results() []Result

func (X509PKCS1PublicKey) Run added in v1.2.0

func (exp X509PKCS1PublicKey) Run()

func (X509PKCS1PublicKey) Short added in v1.2.0

func (exp X509PKCS1PublicKey) Short() string

func (X509PKCS1PublicKey) String added in v1.2.0

func (exp X509PKCS1PublicKey) String() string

type X509PKCS8PrivateKey added in v1.2.0

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

func (X509PKCS8PrivateKey) Input added in v1.2.0

func (exp X509PKCS8PrivateKey) Input() []byte

func (X509PKCS8PrivateKey) Name added in v1.2.0

func (exp X509PKCS8PrivateKey) Name() string

func (X509PKCS8PrivateKey) Results added in v1.2.0

func (exp X509PKCS8PrivateKey) Results() []Result

func (X509PKCS8PrivateKey) Run added in v1.2.0

func (exp X509PKCS8PrivateKey) Run()

func (X509PKCS8PrivateKey) Short added in v1.2.0

func (exp X509PKCS8PrivateKey) Short() string

func (X509PKCS8PrivateKey) String added in v1.2.0

func (exp X509PKCS8PrivateKey) String() string

type X509PKIXPublicKey

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

func (X509PKIXPublicKey) Input added in v1.1.0

func (exp X509PKIXPublicKey) Input() []byte

func (X509PKIXPublicKey) Name

func (exp X509PKIXPublicKey) Name() string

func (X509PKIXPublicKey) Results added in v1.1.0

func (exp X509PKIXPublicKey) Results() []Result

func (X509PKIXPublicKey) Run

func (exp X509PKIXPublicKey) Run()

func (X509PKIXPublicKey) Short added in v1.1.0

func (exp X509PKIXPublicKey) Short() string

func (X509PKIXPublicKey) String

func (exp X509PKIXPublicKey) String() string

Jump to

Keyboard shortcuts

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