Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 953 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 953 Bytes

testing/building Platform

DisguisedSwiftly

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.

Example usage of Stego in iOS

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)
    }
}