dotnet-cryptography

Guide .NET cryptographic algorithm selection and implementation for .NET 10+.

71|10|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-cryptography-wshaddix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-cryptography
Source: https://github.com/wshaddix/dotnet-skills/tree/main/skills/dotnet-cryptography
Command: npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-cryptography-wshaddix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers choose and correctly implement modern cryptographic algorithms in .NET, ensuring data security and integrity against both classical and future quantum threats.

Core Features & Use Cases

  • Algorithm Selection: Guidance on hashing (SHA-2), symmetric encryption (AES-GCM), asymmetric cryptography (RSA, ECDSA), and key derivation (PBKDF2, Argon2).
  • Post-Quantum Cryptography: Introduces ML-KEM, ML-DSA, and SLH-DSA for .NET 10+, with platform considerations.
  • Use Case: Securely hashing user passwords using Argon2id, encrypting sensitive data with AES-GCM, and signing digital documents with quantum-resistant ML-DSA.

Quick Start

Use the dotnet-cryptography skill to generate a secure Argon2id hash for the password 'MySecretPassword123!'.

Frequently Asked Questions about dotnet-cryptography

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I securely hash user passwords in .NET using Argon2id?

To securely hash passwords in .NET using Argon2id, you need a robust key derivation function. This Skill guides you through generating secure Argon2id hashes, ensuring strong protection against brute-force attacks and credential stuffing.

What is the best way to encrypt sensitive data with AES-GCM in .NET?

Encrypting sensitive data with AES-GCM in .NET requires authenticated symmetric encryption. This Skill provides guidance on selecting and implementing AES-GCM, ensuring data confidentiality and integrity against tampering.

Can I implement post-quantum cryptography like ML-DSA and ML-KEM in .NET?

Implementing post-quantum cryptography like ML-DSA and ML-KEM in .NET is supported for .NET 10+. This Skill introduces quantum-resistant algorithms including ML-KEM, ML-DSA, and SLH-DSA, along with specific platform requirements.

Does .NET provide fallback strategies for older versions when modern cryptography is unsupported?

Fallback strategies for older .NET versions are necessary when modern cryptography is unsupported. This Skill addresses platform requirements for cryptographic algorithms and provides fallback implementation strategies for legacy .NET environments.

When should I use ECDSA instead of RSA for asymmetric cryptography in .NET?

Using ECDSA instead of RSA for asymmetric cryptography in .NET depends on your performance and key size requirements. This Skill offers guidance on choosing between RSA and ECDSA for digital signatures and secure key exchange.