XorCodec class
A XorCodec encodes bytes to xor bytes and decodes xor bytes to xor bytes.
Constructors
- XorCodec(XorKey key)
-
Creates a XorCodec from a key.
const
- XorCodec.fromId(KnownXorKeyId id)
-
Creates a XorCodec from an
id
.
Properties
-
decoder
→ Converter<
Uint8List, Uint8List> -
Returns the decoder of
this
, converting fromT
toS
.no setteroverride -
encoder
→ Converter<
Uint8List, Uint8List> -
Returns the encoder from
S
toT
.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Uint8List, Uint8List> -
Inverts
this
.no setterinherited - key → XorKey
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Uint8List encoded) → Uint8List -
Decodes
encoded
data.inherited -
encode(
Uint8List input) → Uint8List -
Encodes
input
.inherited -
fuse<
R> (Codec< Uint8List, R> other) → Codec<Uint8List, R> -
Fuses
this
withother
.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