Steganograph class

Constructors

Steganograph()

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

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

Static Methods

decode({required File image, String? unencryptedPrefix, EncryptionType encryptionType = EncryptionType.symmetric, String? encryptionKey}) Future<String?>
Extracts embedded text from image. If encryptionKey is provided, resulting embedded text (if any) will be assumed as encrypted from encode hence decode will try to decrypt it with encryptionKey symmetrically or asymmetrically depending on specified encryptionType.
decodeBytes({required Uint8List bytes, String? unencryptedPrefix, EncryptionType encryptionType = EncryptionType.symmetric, String? encryptionKey}) Future<String?>
Extracts embedded text from image. If encryptionKey is provided, resulting embedded text (if any) will be assumed as encrypted from encode hence decode will try to decrypt it with encryptionKey symmetrically or asymmetrically depending on specified encryptionType.
decodeFile({required File image, String? unencryptedPrefix, EncryptionType encryptionType = EncryptionType.symmetric, String? encryptionKey}) Future<File?>
Extracts embedded file from image. If encryptionKey is provided, resulting embedded file (if any) will be assumed as encrypted from encodeFile hence decodeFile will try to decrypt it with encryptionKey symmetrically or asymmetrically depending on specified encryptionType.
encode({required File image, required String message, String? unencryptedPrefix, EncryptionType encryptionType = EncryptionType.symmetric, String? outputFilePath, String? encryptionKey}) Future<File?>
Writes message into image without altering rgb channels and returns image file with message embedded.
encodeBytes({required Uint8List bytes, required String message, String? unencryptedPrefix, EncryptionType encryptionType = EncryptionType.symmetric, String? encryptionKey}) Future<Uint8List?>
Writes message into bytes without altering rgb channels and returns image bytes with message embedded.
encodeFile({required File image, required File fileToEmbed, String? unencryptedPrefix, EncryptionType encryptionType = EncryptionType.symmetric, String? outputFilePath, String? encryptionKey}) Future<File?>
Embeds fileToEmbed in image and returns resulting image file.
generateKeypair() SteganographKeypair
Generates a keypair with public and private keys for asymmetric encryption.