<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Token on 每日拍拍</title>
    <link>https://dailypypy.org/tags/token/</link>
    <description>Recent content in Token on 每日拍拍</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-tw</language>
    <copyright>© 2026 每日拍拍</copyright>
    <lastBuildDate>Sun, 17 May 2026 10:20:00 +0800</lastBuildDate><atom:link href="https://dailypypy.org/tags/token/index.xml" rel="self" type="application/rss+xml" />
    <follow_challenge>
      <feedId>155076163427069952</feedId>
      <userId>154825760438254592</userId>
    </follow_challenge>
    
    
    <item>
      <title>Python secrets 實戰：安全產生 Token、密碼與一次性連結</title>
      <link>https://dailypypy.org/learn/python-secrets/</link>
      <pubDate>Sun, 17 May 2026 10:20:00 +0800</pubDate>
      
      <guid>https://dailypypy.org/learn/python-secrets/</guid>
      <description>&lt;!---
1440x768
prompt: masterpiece, best quality, highres, clean anime illustration, japanese anime style, soft shading, flat color design, 1girl, black hair, green eyes, white off-shoulder shirt, black short skirt, slight dutch angle, holding a small key charm, winking one eye, looking at viewer, pastel periwinkle background, subtle floating lock and sparkle shapes without text, neat composition, detailed eyes, cute and smart vibe, minimal background, polished illustration, no text
negative prompt: worst quality, bad eye, bad hand, extra limbs, manga, multiple views, monochrome, text, signature
preflight: candidate python-secrets is distinct from py_dotenv, which focuses on loading existing secrets from environment files, and python-httpx, which only uses bearer tokens as API examples. This post focuses on cryptographically secure random generation, token URLs, temporary passwords, and constant-time comparison with the standard-library secrets module.
---&gt;

&lt;h2 class=&#34;relative group&#34;&gt;一. 前言：不要用 random 產生密碼 
    &lt;div id=&#34;一-前言不要用-random-產生密碼&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#%e4%b8%80-%e5%89%8d%e8%a8%80%e4%b8%8d%e8%a6%81%e7%94%a8-random-%e7%94%a2%e7%94%9f%e5%af%86%e7%a2%bc&#34; aria-label=&#34;定位點&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;寫程式時很容易遇到這種需求：&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://dailypypy.org/learn/python-secrets/featured.png" />
    </item>
    
  </channel>
</rss>
