2012-02-11 base64文字列を生成する node.js sha1ハッシュの次はbase64文字列を。この二つがあればWSSE認証が出来るね! 実行は今回replから。 環境:MacOS 10.7.2 / nvm - node.js v0.6.6 $ node > var aaa = 'asdf'; undefined > var s = new Buffer(aaa); undefined > s.toString('base64'); 'YXNkZg==' 生成できた!すごい簡単だなー。