Bun 博客实战(9):认证、PBKDF2 与会话
不用 bcrypt/argon2,也能用 Web 标准做认证:WebCrypto PBKDF2、随机 salt、常量时间比较、DB 会话和 HttpOnly Cookie。
42 posts
不用 bcrypt/argon2,也能用 Web 标准做认证:WebCrypto PBKDF2、随机 salt、常量时间比较、DB 会话和 HttpOnly Cookie。
BERT is neither encoder-decoder nor decoder-only. It stacks Transformer encoders with bidirectional self-attention. This article compares BERT, GPT and T5, and explains why BERT cannot generate freely like GPT.
Attention mixes information between tokens; the FFN transforms each token independently. This article explains where the FFN sits in a Transformer block, position-wise computation, the 4x expansion, GELU/SwiGLU, parameter counts, and why the FFN often holds most of a layer's parameters.
Build a minimal ubus server/client in C: ubus_connect, ubus_add_object, ubus_lookup_id, ubus_invoke, blobmsg policy, uloop and ACL pitfalls. Includes compile and run output.
Use ubus list/call to inspect objects and invoke methods, listen/send for events, and monitor to capture bus traffic. Includes a troubleshooting table for Not found, Invalid argument and Permission denied.
A practical prplOS x86_64 build guide: use the official profile, run gen_config.py to generate .config, make the image, then boot it in QEMU. Includes image names, the x86_64 config, the feeds network trap and honest verification boundaries.
Subscribe via RSS to get new posts automatically.
Technical questions, feedback and leads: use the guestbook.