package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jun 9, 2023
License: OSL-3.0
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Decrypt is used to decrypt obtained encrypted vaules from the database.
Encrypt encrypts strings using the hashed secret to be stored in the database.
InitDB returns the databse or creates it if it does not exist.
type Entry struct {
bun.BaseModel `bun:"table:asunder"`
ID int `bun:",pk,autoincrement"`
Username string `survey:"username"`
Issuer string `survey:"issuer"`
Secret string `survey:"secret"`
}
Entry is a struct the holds all necessary informations for a TOTP entry.
KeyHash stores the hash in string and []byte format for accessibility.
Hash returns a sha256 hashed secret
Source Files
¶
Click to show internal directories.
Click to hide internal directories.