Last active
October 8, 2019 14:51
-
-
Save tsif/6da6fa118ad15ed985df336772653715 to your computer and use it in GitHub Desktop.
This file contains 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
import CryptoKit | |
import Foundation | |
let path = Bundle.main.path(forResource: "video", ofType: "mp4")! | |
let data = FileManager.default.contents(atPath: path)! | |
let digest = SHA256.hash(data: data) | |
print(digest) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment