Documentation ¶
Overview ¶
Package avdu provides functionality for reading Aegis Authenticator vault files and outputting One-Time Passwords.
Index ¶
- func FindVaultPath(vaultDir string) (string, error)
- func GetOTP(entry vault.Entry) (otp.OTP, error)
- func GetOTPs(vaultData *vault.Vault) (map[string]otp.OTP, error)
- func GetTTN() int64
- func GetTTNPer(period int64) int64
- func LastModified(files []fs.DirEntry) (fs.DirEntry, error)
- func ReadAndDecryptVaultFile(filePath string, pwd string) (*vault.Vault, error)
- func ReadVaultFile(filePath string) (*vault.Vault, error)
- func ReadVaultFileEnc(filePath string) (*vault.VaultEncrypted, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindVaultPath ¶
FindVaultPath returns the most recently modified vault's filepath.
func GetOTPs ¶
GetOTPs generates OTPs for the entries in the vault and returns a map matching each entry's uuid and OTP.
If there's an error, the successfully generated OTPs will be returned along with the error.
func GetTTN ¶
func GetTTN() int64
GetTTN calculates the time in millis until the next OTP refresh using the default period.
func GetTTNPer ¶
GetTTNPer calculates the time in millis until the next OTP refresh using the provided period.
func LastModified ¶
LastModified finds the most recent vault file.
func ReadAndDecryptVaultFile ¶
ReadAndDecryptVaultFile parses the json file at the path, decrypts the vault content, and returns a plaintext vault.
func ReadVaultFile ¶
ReadVaultFile parses the json file at the path and returns a plaintext vault.
func ReadVaultFileEnc ¶
func ReadVaultFileEnc(filePath string) (*vault.VaultEncrypted, error)
ReadVaultFileEnc parses the json file at the path and returns an encrypted vault.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package otp provides functionality for generating and reading One-Time Passwords.
|
Package otp provides functionality for generating and reading One-Time Passwords. |
Package vault provides functionality for interacting with Aegis Authenticator vault data.
|
Package vault provides functionality for interacting with Aegis Authenticator vault data. |