Package with all sorts of cryptographic functions and capabilities for Swift. For now it's mainly concentrated of steganography but new capabilities will be added in the future releases.
let stego = Stego()
let image = UIImage(named: "swift")
stego.encodeTextInImage(with: "Swift is awesome", in: image) { [weak self] result in
switch result {
case .success(let image):
self?.saveImage(image)
case .failure(let error):
self?.displayError(error)
}
}
stego.decodeTextInImage(in: image) { [weak self] result in
switch result {
case .success(let message):
self?.displayMessage(message)
case .failure(_):
self?.displayError(error)
}
}