Last active
March 26, 2021 19:59
-
-
Save giovani-pereira-ifood/f75a623a9006e930fc2ef59e68aeca7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func createHash(from image: UIImage) -> String { | |
let data = image.pngData() | |
let hash = SHA256.createHashString(data: data) | |
return hash | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment