Skip to content

CLI tool to compute checksums used by AWS S3 Glacier

Notifications You must be signed in to change notification settings

jtbandes/glacier-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glacier-swift

This Swift package provides a command-line utility that implements some checksum algorithms used by Amazon S3 and S3 Glacier. This is not a replacement for uploading files (check out the AWS CLI), but can be used to verify checksums for some extra peace of mind.

Usage

swift run glacier etag <file-path> [--chunk-size-mb <chunk-size-mb>] [--chunk-size-bytes <chunk-size-bytes>]
swift run glacier sha1 <file-path> [--chunk-size-mb <chunk-size-mb>] [--chunk-size-bytes <chunk-size-bytes>]
swift run glacier sha256 <file-path> [--chunk-size-mb <chunk-size-mb>] [--chunk-size-bytes <chunk-size-bytes>]

Computes the S3 ETag (MD5), SHA-1, or SHA-256 checksum using the algorithm described here and here. A default chunk size of 8MB is used; this can be configured with the --chunk-size-mb or --chunk-size-bytes option. (For files uploaded via the AWS Console web UI, use --chunk-size-bytes 17179870.)

swift run glacier treehash [file]

Computes the tree hash of a file (used with the older aws glacier complete-multipart-upload).

About

CLI tool to compute checksums used by AWS S3 Glacier

Topics

Resources

Stars

Watchers

Forks

Languages