![]() Note: This is a simplified example and the groups and entries will depend on the specific file. _ = gokeepasslib.NewDecoder(file).Decode(db) ![]() Example: reading a file package mainįile, _ := os.Open("examples/reading/example.kdbx")ĭb.Credentials = gokeepasslib.NewPasswordCredentials("abcdefg12345678") Note that this may cause breaking changes when updating from a previous version. Include it in an application (modulized): import "/tobischo/gokeepasslib/v3"įor non-modulized applications use: import "/tobischo/gokeepasslib" Use go get to retrieve the latest version: go get -u /tobischo/gokeepasslib Note: only Keepass v2.30 or higher is properly supported since earlier versions do not allow empty XML tags but expected self-closing tags (which is valid XML but not really supported by Golang on XML marshaling)īasically: this lib can probably read most Keepass2 files, but only Keepass v2.30 can be expected to read files created in this lib. Gokeepasslib is a library which allows reading Keepass 2 files (kdbx). NewPasswordAndKeyDataCredentials(password, data) NewPasswordAndKe圜redentials(password, location) NewBlockHMACBuilder(masterSeed, transformedKey)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |