Browse Source

Recognize twoFish algorithm

Not supported, but at least it gives a better in the exception / error
now
pull/7/head
Waqar Ahmed 2 years ago
parent
commit
c9f82049d2
  1. 4
      lib/src/internal/consts.dart

4
lib/src/internal/consts.dart

@ -8,12 +8,16 @@ enum Cipher {
/// Support since kdbx 4. /// Support since kdbx 4.
chaCha20, chaCha20,
/// Not Supported, just recognized
twoFish
} }
class CryptoConsts { class CryptoConsts {
static const CIPHER_IDS = <Cipher, KdbxUuid>{ static const CIPHER_IDS = <Cipher, KdbxUuid>{
Cipher.aes: KdbxUuid('McHy5r9xQ1C+WAUhavxa/w=='), Cipher.aes: KdbxUuid('McHy5r9xQ1C+WAUhavxa/w=='),
Cipher.chaCha20: KdbxUuid('1gOKK4tvTLWlJDOaMdu1mg=='), Cipher.chaCha20: KdbxUuid('1gOKK4tvTLWlJDOaMdu1mg=='),
Cipher.twoFish: KdbxUuid('rWjyn1dvS7mjatR6+WU0bA=='),
}; };
static final cipherByUuid = static final cipherByUuid =
CIPHER_IDS.map((key, value) => MapEntry(value, key)); CIPHER_IDS.map((key, value) => MapEntry(value, key));

Loading…
Cancel
Save