Herbert Poul
4 years ago
1 changed files with 10 additions and 1 deletions
@ -1,5 +1,14 @@
|
||||
import 'package:kdbx/kdbx.dart'; |
||||
|
||||
void main() { |
||||
KdbxFormat().read(null, null); |
||||
final kdbx = KdbxFormat() |
||||
.create(Credentials(ProtectedValue.fromString('Lorem Ipsum')), 'Example'); |
||||
|
||||
final group = kdbx.body.rootGroup; |
||||
final entry = KdbxEntry.create(kdbx, group); |
||||
group.addEntry(entry); |
||||
entry.setString(KdbxKeyCommon.USER_NAME, PlainValue('example user')); |
||||
entry.setString( |
||||
KdbxKeyCommon.PASSWORD, ProtectedValue.fromString('password')); |
||||
kdbx.save(); |
||||
} |
||||
|
Loading…
Reference in new issue