ã¯ã¦ãªããã¯ãã¼ã¯AtomAPI/ã¯ã¦ãªãã©ãã©ã¤ãAtomAPI ã§ä½¿ç¨ããWSSEèªè¨¼ã®HTTP X-WSSEããããä½æããRubyã¹ã¯ãªãã $KCODE = 'u' require 'time' require 'digest/sha1' def hatena_wsse_header(hatena_id, password) # Nonce : HTTPãªã¯ã¨ã¹ãæ¯ã«çæããã»ãã¥ãªãã£ã»ãã¼ã¯ã³ # ã©ã³ãã ãªãã¤ãå http://sheepman.parfait.ne.jp/20050104.html nonce = Array.new(10){ rand(0x100000000) }.pack('I*') nonce_base64 = [nonce].pack("m").chomp # Base64ã¨ã³ã³ã¼ã # Created : Nonceãä½æãããæ¥æãISO-8
{{#tags}}- {{label}}
{{/tags}}