{"id":50769639,"url":"https://github.com/chadnpc/cryptobase","last_synced_at":"2026-06-11T17:01:01.847Z","repository":{"id":355331131,"uuid":"1227680020","full_name":"chadnpc/cryptobase","owner":"chadnpc","description":"🔥 Provides classes to speed up your cryptographic needs.","archived":false,"fork":false,"pushed_at":"2026-05-18T06:41:38.000Z","size":333,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-18T08:16:06.862Z","etag":null,"topics":["cryptographic-algorithms"],"latest_commit_sha":null,"homepage":"https://www.powershellgallery.com/packages/cryptobase","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chadnpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-03T02:36:25.000Z","updated_at":"2026-05-18T06:41:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chadnpc/cryptobase","commit_stats":null,"previous_names":["chadnpc/cryptobase"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chadnpc/cryptobase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadnpc%2Fcryptobase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadnpc%2Fcryptobase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadnpc%2Fcryptobase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadnpc%2Fcryptobase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chadnpc","download_url":"https://codeload.github.com/chadnpc/cryptobase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadnpc%2Fcryptobase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34208761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptographic-algorithms"],"created_at":"2026-06-11T17:01:00.943Z","updated_at":"2026-06-11T17:01:01.825Z","avatar_url":"https://github.com/chadnpc.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## [cryptobase](https://www.powershellgallery.com/packages/cryptobase)\n\n🔥 Provides classes to speed up your cryptographic needs.\n\n[![Downloads](https://img.shields.io/powershellgallery/dt/cryptobase.svg?style=flat\u0026logo=powershell\u0026color=blue)](https://www.powershellgallery.com/packages/cryptobase)\n\n**Features**\n\n- **AEAD Encryption**: AES-GCM, AES-CCM, AES-OCB, and XChaCha20-Poly1305.\n- **Hashing \u0026 MACs**: BLAKE3, SHA-3 (Keccak), BLAKE2b, KMAC, HMAC.\n- **Password Hashing**: Argon2 (id/i/d), Scrypt, BCrypt (with SHA-3 extensions), PBKDF2.\n- **Elliptic Curve Cryptography**: Ed25519, Curve25519, Secp256k1 (Bitcoin/Ethereum).\n- **Post-Quantum Cryptography (PQC)**: ML-KEM (Kyber), ML-DSA (Dilithium), SLH-DSA (Sphincs+).\n- **Advanced Protocols**: OPAQUE (PAKE), Noise Protocol Framework, OpenPGP Armor.\n- **Utilities**: OTP (TOTP/HOTP), Key Derivation (HKDF), Credentials Management, File Obfuscation.\n\n**📦 Installation**\n\n```PowerShell\n# Install from PSGallery\nInstall-Module cryptobase -Scope CurrentUser\n\n# Import the module\nImport-Module cryptobase\n```\n\n**🗐 Testing (before opening a PR)**\n\n```PowerShell\nImport-Module ./cryptobase.psd1\n./Test-Module.ps1 -SkipBuildOutput\n```\n\nor test the `./BuildOutput/`\n\n```PowerShell\n./Test-Module.ps1\n```\n\n**💡 Quick Examples**\n\n**High-Level Data Protection**\nEasily encrypt and decrypt data with a password using the main `[CryptoBase]` class.\n\n```powershell\n$password = [secureString][System.Net.NetworkCredential]::new(\"\", \"my-ultra-secure-password\").SecurePassword\n$data = [System.Text.Encoding]::UTF8.GetBytes(\"Hello World\")\n\n# Encrypt (uses Argon2id + AES-256-GCM)\n$encrypted = [CryptoBase]::ProtectData($data, $password)\n\n# Decrypt\n$decrypted = [CryptoBase]::UnprotectData($encrypted, $password)\n[System.Text.Encoding]::UTF8.GetString($decrypted) # i.e: you get back \"Hello World\"\n```\n\n\n**Modern Hybrid Cascades**\nParanoid double-wrap mode with independent keys for AES-256-GCM and XChaCha20-Poly1305.\n\n```powershell\n$password = [secureString][System.Net.NetworkCredential]::new(\"\", \"my-ultra-secure-password\").SecurePassword\n$data = [System.Text.Encoding]::UTF8.GetBytes(\"Top secret\")\n$cascade = [CryptoBase]::ProtectDataCascade($data, $password)\n$plain = [CryptoBase]::UnprotectDataCascade($cascade, $password)\n[system.text.Encoding]::UTF8.GetString($plain) # i.e: you get back \"Top secret\"\n```\n\n**Post-Quantum Hybrids**\nHybrid encryption that combines NIST P-256 ECDH with ML-KEM encapsulation.\n\n```powershell\n$recipientP256 = [Curve25519]::GenerateKeyPair()\n$recipientKem =  [MLKemCore]::GenerateKeyPair()\n$payload = [System.Text.Encoding]::UTF8.GetBytes(\"future-proof\")\n$hybrid = [CryptoBase]::ProtectDataQuantumHybrid($payload, $recipientP256.PublicKey, $recipientKem.PublicKey)\n```\n\n**Password Hashing (BCrypt)**\nStandard password hashing for your applications.\n\n```powershell\nclihelper.core\\Wait-Task \"H4sH1N9\" { param([string]$secret) return [BCrypt]::HashPassword($secret) } 'my_secret'\nWait-Task \"H4sH1N9\" { param([string]$secret) return [BCrypt]::HashPassword($secret) } 'my_secret'\n$isValid = [BCrypt]::Verify('my_secret', $hash) # Returns $true\n```\n\n**📚 Documentation**\n\nFor a complete list of classes and their usage, see:\n\n- **[More about the main class](./docs/CryptoBase.md)** and cmdlet overview.\n- **[More usage docs](./docs/README.md)**: Categorized list of all major primitives.\n- **[OPAQUE Protocol](./docs/Opaque.md)**: Detailed guide for secure password authentication.\n\n\n\n**⚖️ License**\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadnpc%2Fcryptobase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchadnpc%2Fcryptobase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadnpc%2Fcryptobase/lists"}