aws4-signature:AWS 版本 4 签名生成器

  • H4_418336
    了解作者
  • 65.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-13 13:03
    上传日期
aws4-签名 AWS 版本 4 签名生成器 例子 var aws4_sign = require ( "aws4-signature" ) ; var signature = aws4_sign ( "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY" , "2011-09-09T12:00:00.000Z" , "us-east-1" , "iam" , "AWS4-HMAC-SHA256\n20110909T233600Z\n20110909/us-east-1/iam/aws4_request\n3511de7e95d28ecd39e9513b642aee07e54f4941150d8df8bf94b328ef7e55e2" ) ; // Outputs "ced6826de92d2bdeed8f846f0bf508e8559e
aws4-signature-master.zip
  • aws4-signature-master
  • .gitignore
    587B
  • package.json
    623B
  • .travis.yml
    356B
  • LICENSE
    11.1KB
  • README.md
    994B
  • lib
  • index.js
    631B
  • test
  • .DS_Store
    8KB
  • examples.js
    1.8KB
  • aws4_testsuite
  • post-vanilla-query-space.req
    80B
  • get-slashes.sreq
    268B
  • get-vanilla-ut8-query.creq
    148B
  • post-vanilla-empty-query-value.req
    78B
  • get-relative-relative.creq
    135B
  • post-x-www-form-urlencoded.sts
    135B
  • get-vanilla-query-unreserved.creq
    268B
  • post-header-value-case.authz
    181B
  • post-header-key-sort.req
    81B
  • get-slash.authz
    177B
  • post-vanilla-empty-query-value.sreq
    271B
  • post-vanilla-query-space.sts
    135B
  • get-relative.sreq
    268B
  • get-space.creq
    142B
  • post-vanilla-query-space.sreq
    273B
  • get-vanilla-ut8-query.req
    77B
  • get-relative-relative.authz
    177B
  • post-header-key-sort.creq
    151B
  • get-space.req
    76B
  • post-x-www-form-urlencoded-parameters.req
    138B
  • post-vanilla-query-nonunreserved.creq
    202B
  • get-slash-dot-slash.req
    71B
  • get-header-key-duplicate.authz
    181B
  • get-slash-dot-slash.sts
    135B
  • post-header-key-sort.sts
    135B
  • get-vanilla-query.sts
    135B
  • get-vanilla-query-order-value.sreq
    274B
  • post-vanilla-query.creq
    143B
  • post-x-www-form-urlencoded-parameters.creq
    210B
  • get-vanilla-query-order-key.req
    81B
  • get-header-key-duplicate.creq
    165B
  • get-slash.creq
    135B
  • get-vanilla-query-unreserved.sts
    135B
  • get-vanilla.authz
    177B
  • get-vanilla-query.creq
    135B
  • get-slash.sreq
    263B
  • get-vanilla-query-order-value.sts
    135B
  • get-relative-relative.sreq
    275B
  • get-vanilla-query-order-key-case.sts
    135B
  • get-utf8.authz
    177B
  • post-vanilla.sreq
    263B
  • get-slash-pointless-dot.sreq
    267B
  • get-vanilla-empty-query-key.creq
    142B
  • post-vanilla-query.sts
    135B
  • post-vanilla-query-nonunreserved.sreq
    313B
  • get-header-value-order.req
    86B
  • get-vanilla-ut8-query.sreq
    270B
  • post-x-www-form-urlencoded-parameters.authz
    190B
  • get-vanilla-ut8-query.authz
    177B
  • get-vanilla-query-order-key-case.authz
    177B
  • post-vanilla-empty-query-value.sts
    135B
  • get-vanilla-query-order-value.authz
    177B
  • get-relative.creq
    135B
  • get-header-value-trim.creq
    146B
  • post-header-key-case.sreq
    263B
  • post-header-value-case.creq
    151B
  • post-vanilla-query-nonunreserved.req
    120B
  • get-vanilla-query.req
    69B
  • post-header-key-case.req
    70B
  • get-vanilla-empty-query-key.req
    77B
  • get-vanilla-query-order-value.req
    81B
  • get-header-value-trim.sts
    135B
  • post-x-www-form-urlencoded-parameters.sts
    135B
  • post-vanilla.req
    70B
  • get-slashes.sts
    135B
  • post-vanilla.authz
    177B
  • get-slashes.creq
    139B
  • get-utf8.sreq
    271B
  • get-header-key-duplicate.sreq
    300B
  • get-slash-pointless-dot.req
    74B
  • post-header-key-sort.authz
    181B
  • get-vanilla.creq
    135B
  • post-vanilla-query-space.authz
    177B
  • get-vanilla-query-order-key-case.sreq
    278B
  • post-header-key-sort.sreq
    278B
  • get-vanilla-empty-query-key.sts
    135B
  • get-unreserved.sts
    135B
  • get-utf8.creq
    144B
  • get-unreserved.creq
    201B
  • get-slash-pointless-dot.sts
    135B
  • get-slash-pointless-dot.authz
    177B
  • get-vanilla-empty-query-key.authz
    177B
  • post-x-www-form-urlencoded.req
    124B
  • post-header-key-case.sts
    135B
  • get-slash-dot-slash.creq
    135B
  • get-header-value-trim.sreq
    275B
  • post-x-www-form-urlencoded.creq
    196B
  • get-header-value-order.sts
    135B
内容介绍
# aws4-signature AWS Version 4 signature generator [![Build Status](https://travis-ci.org/jbuck/aws4-signature.svg)](https://travis-ci.org/jbuck/aws4-signature) ## Example ```javascript var aws4_sign = require("aws4-signature"); var signature = aws4_sign( "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY", "2011-09-09T12:00:00.000Z", "us-east-1", "iam", "AWS4-HMAC-SHA256\n20110909T233600Z\n20110909/us-east-1/iam/aws4_request\n3511de7e95d28ecd39e9513b642aee07e54f4941150d8df8bf94b328ef7e55e2" ); // Outputs "ced6826de92d2bdeed8f846f0bf508e8559e98e4b0199114b84c54174deb456c" console.log(signature); ``` ## API aws4-signature has a single function that returns a hexadecimal encoded signature ``` function aws4_sign( secret, // Your AWS secret key date, // The date of the request in any format that "new Date()" can parse region, // The region that is receiving the request service, // The service that is receiving the request string_to_sign // The string to sign ) ```
评论