SecretKey class final
Symmetric encryption/decryption secret key.
Note: this implementation tries to prevent certain types of attacks by making sure the
underlying sensitive key material is always stored at most in one place. This is achieved by
putting it on the heap which means it is not moved when the key itself is moved which could
otherwise leave a copy of the data in memory. Additionally, the data is behind a Arc
which
means the key can be cheaply cloned without actually cloning the data. Finally, the data is
scrambled (overwritten with zeros) when the key is dropped to make sure it does not stay in
the memory past its lifetime.
Constructors
-
SecretKey.new(List<
int> value)
Properties
Methods
-
encode(
Packer p) → void -
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.
override