dimanche 11 janvier 2015

URL is Amazon S3 or S3 with CloudDrive?

I want to get this URL... I get the encription of 1 term, what the others i don't have... I need help with that.



$signature = urlencode(base64_encode((hash_hmac("sha1", utf8_encode($string_to_sign), $AWS_s3_secret_key, TRUE))));

$authentication_params = "AWSAccessKeyId=".$AWS_S3_KEY;
$authentication_params.= "&Expires={$expires}";
$authentication_params.= "&Signature={$signature}";

return $link;


and i want this URL:



http://ift.tt/17wX1qQ
A1U8PWYOT4FQ20/rENkkEQK2ugcWCg1rCuQFEptXSmU6BtWB3IqzIrihLahNJyQkPbOtrQrUhfWhf
/tlhFAj7pb9ZI2RHkiIJF/a%2Bug1LBcqTtXdls/
6EcgwwQRZcmUGA9NNyCiitAOYUNVVbwI5MXCjrzNmHqFjeO4ZGz%2B%2B8mLtSJq%2BcqfEqUWdN4bDSATrGQvgUQD4r8D2W0x1EGMbXbPxVnu46rJJ5GpayJ0R8Yz9pwFkpmT6i0
/g8o1ACgmGcwprh%2BH16wmKJNhK5itgq7lykP9cHkiTkjv0iPqQekkuE4BS%2BGgdbRn2uEkZmlVcc%2Brdw06naIhdlOn?
Expires=$expires
&response-expires=$date
&response-content-disposition=attachment$file
&AWSAccessKeyId=$key
&x-amz-security-token=$token
&Signature=$signature


how can i get this URL?


PD: the first part after "/" is the bucket and the filename (i guess), how can i get this on a normal string to encrypted??? For example: "$bucket = "string here"" -> A1U8PWYOT4FQ20





Aucun commentaire:

Enregistrer un commentaire