discontinuedPackage encrypt_decrypt_plus has been discontinued and replaced by encrypter.

XOR class

encryption and decryption using XOR

Constructors

XOR({String? secretKey})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secretKey ↔ String?
secretKey set key for encryption and decryption
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
xorDecode(String content, {String? secretKey}) → String
string xor decryption
xorDecodeBytes(List<int> bytes, {String? secretKey}) → List<int>
bytes xor decryption
xorDecodeBytesToString(List<int> bytes, {String? secretKey}) → String
string to bytes xor decryption
xorDecodeStringToBytes(String content, {String? secretKey}) → List<int>
bytes to string xor decryption
xorEncode(String content, {String? secretKey}) → String
string xor encryption
xorEncodeBytes(List<int> bytes, {String? secretKey}) → List<int>
bytes xor encryption
xorEncodeBytesToString(List<int> bytes, {String? secretKey}) → String
bytes to string xor encryption
xorEncodeStringToBytes(String content, {String? secretKey}) → List<int>
string to bytes xor encryption

Operators

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