Check the Integrity of Data in Amazon S3 with Additional Checksums
Introduction
Implementation
Create an Amazon S3 bucket
1. Sign in to the Amazon S3 console
If you have not already done so, create an AWS account.
Log into the AWS Management Console using your account information.
From the AWS console services search bar, enter S3. Under the services search results section, select S3. You may notice an option for S3 Glacier. This option is for the Glacier service prior to integration with Amazon S3. We recommend Amazon S3 Glacier users use the Amazon S3 console for an enhanced user experience.

2. Create an S3 bucket
Choose Buckets from the Amazon S3 menu on the left and then choose the Create bucket button.

3. Enter a bucket name and choose a region
Enter a descriptive globally unique name for your bucket. Select which AWS Region you would like your bucket created in. The default Block Public Access setting is appropriate for this workload, so leave this section as is.
You can leave the remaining options as defaults, navigate to the bottom of the page, and choose Create bucket.

Upload a file and specify the checksum algorithm
Now that your bucket is created and configured, you are ready to upload a file and have the checksum calculated by Amazon S3.
1. Open your S3 bucket
If you have logged out of your AWS Management Console session, log back in. Navigate to the S3 console and select the Buckets menu option. From the list of available buckets, select the bucket name of the bucket you just created.

2. Upload an object
Next, select the Objects tab. Then, from within the Objects section, choose the Upload button.

3. Add files
Choose the Add files button and then select the file you would like to upload from your file browser.

4. Expand properties
Navigate down the page to find the Properties section. Then, select Properties and expand the section.

5. Select additional checksums
Under Additional checksums select the On option and choose SHA-256.

6. (Optional) Enter a checksum value
If your object is less than 16 MB and you have already calculated the SHA-256 checksum (base64 encoded), you can provide it in the Precalculated value input box. To use this functionality for objects larger than 16 MB, you can use the CLI or SDK.
When Amazon S3 receives the object, it calculates the checksum by using the algorithm specified. If the checksum values do not match, Amazon S3 generates an error and rejects the upload, as shown in the screenshot.

7. Upload the file
Navigate down the page and choose the Upload button.

8. Complete the upload
After your upload completes, choose the Close button.

Verify checksum
1. View file properties
Select the uploaded file by selecting the filename. This will take you to the Properties page.
