Browse Source

correctly write UUIDs as base64.

remove-cryptography-dependency
Herbert Poul 5 years ago
parent
commit
082f78a6cd
  1. 2
      lib/src/kdbx_object.dart

2
lib/src/kdbx_object.dart

@ -48,7 +48,7 @@ abstract class KdbxObject extends KdbxNode {
class KdbxUuid { class KdbxUuid {
const KdbxUuid(this.uuid); const KdbxUuid(this.uuid);
KdbxUuid.random() : this(uuidGenerator.v4()); KdbxUuid.random() : this(base64.encode(uuidGenerator.parse(uuidGenerator.v4())));
static final Uuid uuidGenerator = Uuid(options: <String, dynamic>{ static final Uuid uuidGenerator = Uuid(options: <String, dynamic>{
'grng': UuidUtil.cryptoRNG 'grng': UuidUtil.cryptoRNG

Loading…
Cancel
Save