KeepassX format implementation in pure dart.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
445 B

import 'package:kdbx/kdbx.dart';
void main() {
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();
}