HydratedAesCipher class

Default encryption algorithm. Uses AES256 CBC with PKCS7 padding.

Inheritance
  • Object
  • HiveAesCipher
  • HydratedAesCipher
Implemented types

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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