Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/6925be13-ebbc-8008-b732-b451ffffc4fe
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== 🫧② 匿名化して安全に使う方法 ==== 指紋技術は強力ですが、法律上は「個人識別可能情報」と見なされる可能性があります。 そのため、匿名化・最小限利用がとても重要です。 ===== 🧮 匿名化の基本方針 ===== # ハッシュ化して保存する → 実際のfingerprint値をそのまま残さず、SHA256などで変換する。 # 利用目的を限定する → 「荒らし対策のためのみ使用」と明記。 # 保存期間を制限する → 例えば「最終アクセスから30日で削除」。 ===== 🧠 実装例(Python) ===== <syntaxhighlight lang="python">import hashlib def anonymize_fingerprint(raw_fp): return hashlib.sha256(raw_fp.encode()).hexdigest() </syntaxhighlight> 保存時にこれでハッシュ化した値を使います。 <syntaxhighlight lang="python">fp_raw = request.form["fingerprint"] fp_hash = anonymize_fingerprint(fp_raw) save_post(msg, fp_hash) </syntaxhighlight> このようにすれば: * 管理者でも元のfingerprintは復元できない。 * それでも「同一端末」かどうかの比較は可能。 ===== 🪶 さらに安全にする工夫 ===== | 対策 | 内容 | | --------------- | --------------------------------- | | 🔁 ハッシュにソルトを加える | hash(fp + SECRET_SALT) にして外部再現を防ぐ | | 🧹 定期削除 | 一定期間で不要なfingerprintを削除 | | 📜 ポリシー明記 | 利用目的と保存期間をサイトに明記する(法的リスク回避) |
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)