Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPasswordDidnotMatch indicates that given two passwords are not same. ErrPasswordDidnotMatch = errors.New("encryption password doesn't match") )
Functions ¶
func GetPassword ¶
GetPassword reads password from stdin. This method prompts and read two times, and then verify the given two passwords is same. If they are same, then return it. Otherwise, an error returned.
func GetPasswordOnce ¶
GetPasswordOnce reads password from stdin.
func ReadArchive ¶
ReadArchive reads encrypted archive and returns the decrypted data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.