「Webブラウザ(Chrome)」の版間の差分

Notion-MW
タグ: 差し戻し済み
Notion-MW
タグ: 差し戻し済み
24行目: 24行目:
この2.の部分は[https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/web_applications/web_app_helpers_unittest.cc ソースコード]に書いてある[https://play.golang.org/p/VrIq_QKFjiV playground]で試すこともできる。pythonで書くと以下のようになる(URLはコマンドライン引数として渡すことを想定)。
この2.の部分は[https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/web_applications/web_app_helpers_unittest.cc ソースコード]に書いてある[https://play.golang.org/p/VrIq_QKFjiV playground]で試すこともできる。pythonで書くと以下のようになる(URLはコマンドライン引数として渡すことを想定)。


<syntaxhighlight lang="import hashlib">
<syntaxhighlight lang="python">
 
python
import hashlib
 
m = hashlib.sha256()
m = hashlib.sha256()
m.update(bytes("https://chat.openai.com/".encode('ascii')))
m.update(bytes("https://chat.openai.com/".encode('ascii')))