Documentation ¶
Index ¶
- Variables
- func Decode(key string) ([]byte, error)
- func Encode(pubKey []byte) string
- type Auth
- func (a *Auth) AccessKey() string
- func (a *Auth) Decrypt(ciphertext []byte) ([]byte, error)
- func (a *Auth) DecryptWithPassword(ciphertext []byte, password string) ([]byte, error)
- func (a *Auth) Encrypt(data []byte) ([]byte, error)
- func (a *Auth) EncryptWithPassword(data []byte, password string) ([]byte, error)
- func (a *Auth) Onion() onion.Onioner
- func (a *Auth) OnionAddress() string
- func (a *Auth) OnionAddressFull() string
- func (a *Auth) Password() string
- func (a *Auth) Save() error
- func (a *Auth) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var SESSION_DIR = config.SESSION_DIR
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewFromKey ¶
func (*Auth) DecryptWithPassword ¶
for testing
func (*Auth) EncryptWithPassword ¶
for testing
func (*Auth) OnionAddress ¶
func (*Auth) OnionAddressFull ¶
Click to show internal directories.
Click to hide internal directories.