From 082f78a6cd8ce07886f01f3910de48a1b96eaf56 Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Tue, 27 Aug 2019 01:47:14 +0200 Subject: [PATCH] correctly write UUIDs as base64. --- lib/src/kdbx_object.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/kdbx_object.dart b/lib/src/kdbx_object.dart index 77b1c0b..b7720b9 100644 --- a/lib/src/kdbx_object.dart +++ b/lib/src/kdbx_object.dart @@ -48,7 +48,7 @@ abstract class KdbxObject extends KdbxNode { class KdbxUuid { const KdbxUuid(this.uuid); - KdbxUuid.random() : this(uuidGenerator.v4()); + KdbxUuid.random() : this(base64.encode(uuidGenerator.parse(uuidGenerator.v4()))); static final Uuid uuidGenerator = Uuid(options: { 'grng': UuidUtil.cryptoRNG