HiveAesCipher class Null safety

Default encryption algorithm. Uses AES256 CBC with PKCS7 padding.

Implemented types

Constructors

HiveAesCipher(List<int> key)
Create a cipher with the given key.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

calculateKeyCrc() int
Calculate a hash of the key. Make sure to use a secure hash.
override
decrypt(Uint8List inp, int inpOff, int inpLength, Uint8List out, int outOff) int
Decrypt the given bytes.
override
encrypt(Uint8List inp, int inpOff, int inpLength, Uint8List out, int outOff) int
Encrypt the given bytes.
override
generateIv() Uint8List
Generates a random initialization vector (internal)
maxEncryptedSize(Uint8List inp) int
The maximum size the input can have after it has been encrypted.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited