SWIFT sample file
swift_sample_file_500KB.swift
507.0 KB
application/octet-stream
SHA256 verified
File details
Filename
swift_sample_file_500KB.swiftSize507.0 KB (519120 bytes)
MIME type
application/octet-streamExtension
.swiftSHA256
86cb206ab037915617388158eeeaebe3b8d296cb27593e014506e313e611a583Download commands
Use in scripts and tests
curl -L -o swift_sample_file_500KB.swift \
https://samplefile.com/samples/download/code/swift/swift_sample_file_500KB.swift/
wget -O swift_sample_file_500KB.swift \
https://samplefile.com/samples/download/code/swift/swift_sample_file_500KB.swift/
import requests
url = "https://samplefile.com/samples/download/code/swift/swift_sample_file_500KB.swift/"
resp = requests.get(url)
with open("swift_sample_file_500KB.swift", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/swift/swift_sample_file_500KB.swift/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("swift_sample_file_500KB.swift", buf);
# Download and verify SHA256
curl -L -o swift_sample_file_500KB.swift https://samplefile.com/samples/download/code/swift/swift_sample_file_500KB.swift/
echo "86cb206ab037915617388158eeeaebe3b8d296cb27593e014506e313e611a583 swift_sample_file_500KB.swift" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/swift/swift_sample_file_500KB.swift/").content
assert hashlib.sha256(data).hexdigest() == "86cb206ab037915617388158eeeaebe3b8d296cb27593e014506e313e611a583"
More SWIFT files
Other SWIFT Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
swift_sample_file_1MB.swift |
1.0 MB | f243ea74130c75ae… |
Download |
swift_sample_file_200KB.swift |
200.0 KB | a6c8655b93153ebb… |
Download |
swift_sample_file_50KB.swift |
50.0 KB | 9b30356a53524f01… |
Download |
Learn more