Amazon S3 Encryption
Now when you do a “view source” on any page on our site that has a demo video to show the S3MediaVault script in action, you might see something like this:
flowplayer(“player533662499-1291229078″, “http://s3mediavault.com/blog/wp-content/plugins/S3MediaVault/flowplayer-3.1.2.swf”, {
clip: {
url: escape(‘http://s3mediavault.com.s3.amazonaws.com/intro2ll.mp4?AWSAccessKeyId=1HPS101KFMM8SKNK9BG2&Expires=1291230078&Signature=gD31LukvVow3RefZAIU6X%2Bw1MpY%3D‘),
autoPlay: false,
autoBuffering: false
}
});
And you might look at the text in bold above and wonder, “Hey, how come something called the key is showing? That doesn’t appear like it’s secure – it’s showing all of my information!”.
No need to freak out – the S3MediaVault script is very secure – as secure as an Amazon S3 script can possibly get.
Public-key / Private-key Encryption
Note that Amazon S3 uses an encryption called “Public-key / Private-key“. You can read more about it here. When any two parties are exchanging information using the public & private keys, the private key is never exposed. It is always the “Public” key that is exposed to the world (and there’s no issue doing that either) as that’s how it is supposed to work (if you read the above link), and that’s not a security issue. Please note that when setting up the S3MediaVault script, you entered both a “Public key” and a “secret key”. The “secret key” is the private key and it is never exposed to anyone. It is only the “public key” that you see when you do a view source.
How It Works
So here’s how the script works:
- Visitor arrives at your page that has the S3MediaVault embed code
- The S3MediaVault script is triggered by WordPress due to the [s3mv] tags in your page/post
- S3MediaVault then takes the file name from the tag, then opens a connection using the “Public Key” for your Amazon S3 account. Please note that when setting up the S3MediaVault script, you entered both a “Public key” and a “secret key”. The “secret key” is the private key and it is never exposed to anyone. It is only the “public key” that you see when you do a view source.
- Amazon then responds back to S3MediaVault on your site, with an expiring URL for the protected file.
- S3MediaVault just uses that secure, expiring link to display the video (or PDF, etc).
