我忘记了我的 AmazonAWS 密钥,但我有几个 HMAC 签名的请求。我怎么能够
I forgot my AmazonAWS secret key, but I have a couple HMAC signed requests. How can I
签名函数如下,
$sig = base64_encode(hash_hmac('sha256', "{$method}\n{$server}\n{$uri}\n{$query_string}", MY_PRIVATE_KEY, true));
$signature = str_replace("%7E", "~", rawurlencode($sig));
当我拥有所有这些部分时,我如何推断 MY_PRIVATE_KEY
{$method}\n{$server}\n{$uri}\n{$query_string}
和 $signature
,如果可能的话?
你不能。*
*
除了大量的服务器池 运行 破解操作。如this quora answer states when talking about SHA256, "If this is the case, your MacBook Pro will have dissipated into nothingness as part of the heat death of the universe before it finishes cracking that password".
签名函数如下,
$sig = base64_encode(hash_hmac('sha256', "{$method}\n{$server}\n{$uri}\n{$query_string}", MY_PRIVATE_KEY, true));
$signature = str_replace("%7E", "~", rawurlencode($sig));
当我拥有所有这些部分时,我如何推断 MY_PRIVATE_KEY
{$method}\n{$server}\n{$uri}\n{$query_string}
和 $signature
,如果可能的话?
你不能。*
*
除了大量的服务器池 运行 破解操作。如this quora answer states when talking about SHA256, "If this is the case, your MacBook Pro will have dissipated into nothingness as part of the heat death of the universe before it finishes cracking that password".