You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
自分用のメモです。 要件定義 ~/.ssh/id_rsa と ~/.ssh/id_rsa.pubを使って暗号化したい ~/.ssh/id_rsaはパスワードあり streamで対応したい 上記3つに対応した方法が見つからなかったので、やってみました。 公開鍵を使って暗号化 -> 秘密鍵を使って復号化 ursaモジュールが良さそうでしたので、これを利用。 var ursa = require('ursa'); var fs = require('fs'); var userHome = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME']; var keyPub = fs.readFileSync(userHome + '/.ssh/id_rsa.pub', 'utf8'); var pubKey = ursa
Authors Nishant Das Patnaik (nishant.dp@) Sarathi Sabyasachi Sahoo (sarathisahoo@) Introduction Today, more and more developers are switching to JavaScript as their first choice of language. The reason is simple JavaScript has now been started to be accepted as the mainstream programming for applications, be it on the web or on the mobile; be it on client-side, be it on the server side. JavaScript
Content-Security-Policy の nonce を利用すると、XSS の脅威をかなり軽減できます。 そこで、Web Application Framework ではデフォルトで対応したほうがよいのではないか、という旨を @hasegawayosuke さんから教えて頂いたので、実装について考えてみました。 とりあえず CSP の nonce はどういうものなのかを考慮するために、コード例を探していたのですが、実際に動くサンプルというものが nonce 関連のもので見当たりませんでした。 そこで、実際に動くサンプルを用意しました。 https://github.com/tokuhirom/csp-nonce-sample 以下は Sinatra で書かれたサンプルコードです。 require 'sinatra' require 'securerandom' get '/' d
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く