Chuyển đến nội dung
Skillpedia
Bảo mật35k · #8029

implementing-digital-signatures-with-ed25519

Skill này làm gì

Công cụ này giúp tạo chữ ký số an toàn bằng phương pháp Ed25519. Nó cho phép bạn xác nhận một tin nhắn hoặc tệp có xác thực và chưa bị thay đổi hay không.

Khi nào nên dùng

  • ✓Khi cần đảm bảo tính xác thực của các tài liệu quan trọng.
  • ✓Khi muốn kiểm tra xem chương trình hoặc tệp có bị sửa đổi không.
  • ✓Khi thiết lập hệ thống bảo mật để bảo vệ thông tin.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-digital-signatures-with-ed25519/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-digital-signatures-with-ed25519/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm thế nào để tạo chữ ký số cho tài liệu này bằng Ed25519?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ tạo một cặp khóa (một công khai, một riêng tư) để ký. Khóa riêng tạo ra chữ ký, còn khóa công khai dùng để kiểm tra chữ ký có hợp lệ không. Điều này đảm bảo tin nhắn đến từ người gửi được khai báo và không bị thay đổi.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Implementing Digital Signatures with Ed25519

Overview

Ed25519 is a high-performance digital signature algorithm using the Edwards curve Curve25519. It provides 128-bit security with 64-byte signatures and 32-byte keys, offering significant advantages over RSA and ECDSA including deterministic signatures (no random nonce needed), resistance to side-channel attacks, and fast verification. This skill covers implementing Ed25519 for document signing, code signing, and API authentication.

When to Use

  • When deploying or configuring implementing digital signatures with ed25519 capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Familiarity with cryptography concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Objectives

  • Generate Ed25519 key pairs for signing
  • Sign messages and files with Ed25519
  • Verify signatures against public keys
  • Implement multi-signature verification
  • Build a simple code signing system
  • Compare Ed25519 performance with RSA and ECDSA

Key Concepts

Ed25519 vs RSA vs ECDSA

Property Ed25519 RSA-3072 ECDSA P-256
Security 128-bit 128-bit 128-bit
Public key size 32 bytes 384 bytes 64 bytes
Signature size 64 bytes 384 bytes 64 bytes
Key generation ~50 us ~100 ms ~1 ms
Sign ~70 us ~5 ms ~200 us
Verify ~200 us ~200 us ~500 us
Deterministic Yes No (PSS) No (unless RFC 6979)

Key Properties

  • Deterministic: Same message + key always produces same signature
  • Collision-resistant: No separate hash function needed
  • Side-channel resistant: Constant-time implementation
  • Small keys: 32 bytes each (public and private)

Security Considerations

  • Ed25519 does not support key recovery from signatures
  • Verify the full message, not a hash (Ed25519 hashes internally)
  • Public keys must be validated before use (check for low-order points)
  • Private keys should be stored encrypted at rest
  • Ed25519 is not yet approved for all NIST use cases (Ed448 is preferred for federal)

Validation Criteria

  • Key pair generation produces valid Ed25519 keys
  • Signature verification succeeds for valid message
  • Signature verification fails for tampered message
  • Signature verification fails for wrong public key
  • Deterministic: same input produces same signature
  • File signing and verification works correctly
  • Performance meets or exceeds RSA-3072
Câu hỏi thường gặp

Chữ ký số là gì?

Đó giống như con dấu xác thực cho dữ liệu số. Nó đảm bảo thông tin là nguyên gốc và chưa bị can thiệp.

Vì sao dùng Ed25519?

Đây là phương pháp hiện đại và nhanh để tạo chữ ký số, thường an toàn và hiệu quả hơn các phương pháp cũ như RSA.

Khóa công khai và khóa riêng tư là gì?

Khóa riêng tư được giữ bí mật và dùng để tạo chữ ký. Khóa công khai có thể chia sẻ và dùng để xác minh chữ ký có hợp lệ không.

Chi tiết

Mô tả gốc của tác giả

Implements digital signatures using the Ed25519 algorithm (Curve25519), covering key-pair generation, signing, signature verification, and security tradeoffs versus RSA and ECDSA. Use when adding message or artifact signing and authentication-integrity checks to a system, or when advising on Ed25519 key properties and validation criteria.

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#8029
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự