{"id":26788379,"url":"https://github.com/topay-foundation/topay-01","last_synced_at":"2025-08-07T14:33:20.902Z","repository":{"id":284740372,"uuid":"955861049","full_name":"TOPAY-FOUNDATION/TOPAY-01","owner":"TOPAY-FOUNDATION","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-27T12:11:21.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-27T12:39:22.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/TOPAY-FOUNDATION.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}},"created_at":"2025-03-27T10:09:47.000Z","updated_at":"2025-03-27T12:10:06.000Z","dependencies_parsed_at":"2025-03-27T12:49:33.271Z","dependency_job_id":null,"html_url":"https://github.com/TOPAY-FOUNDATION/TOPAY-01","commit_stats":null,"previous_names":["mdshahriya/topay-01"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOPAY-FOUNDATION%2FTOPAY-01","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOPAY-FOUNDATION%2FTOPAY-01/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOPAY-FOUNDATION%2FTOPAY-01/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TOPAY-FOUNDATION%2FTOPAY-01/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TOPAY-FOUNDATION","download_url":"https://codeload.github.com/TOPAY-FOUNDATION/TOPAY-01/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246187195,"owners_count":20737463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-03-29T13:17:38.960Z","updated_at":"2025-03-29T13:17:39.588Z","avatar_url":"https://github.com/TOPAY-FOUNDATION.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TOPAY-01 Cryptographic Library\n\nA lightweight, high-security cryptographic library optimized for mobile processors with quantum-resistant algorithms.\n\n## Features\n\n- Modern cryptographic algorithms that offer better security than SHA-256 while maintaining efficiency on resource-constrained devices\n- Quantum-resistant cryptographic algorithms to protect against attacks from quantum computers\n- Optimized for mobile processors\n- TypeScript definitions included\n\n## Installation\n\n```bash\nnpm install topay-01\n```\n\nOr add it directly to your project:\n\n```bash\nnpm install https://github.com/MdShahriya/TOPAY-01.git\n```\n\n## Usage\n\n### Basic Usage\n\n```javascript\nconst TOPAYCrypto = require('topay-01');\n\n// Generate random bytes\nconst randomBytes = TOPAYCrypto.generateRandomBytes(32);\nconsole.log('Random bytes:', Buffer.from(randomBytes).toString('hex'));\n\n// Hash data with BLAKE3\nasync function hashExample() {\n  const hash = await TOPAYCrypto.blake3Hash('Hello, TOPAY!');\n  console.log('BLAKE3 Hash:', hash);\n}\n\n// Password hashing with Argon2id\nasync function passwordExample() {\n  const password = 'secure_password';\n  const hash = await TOPAYCrypto.argon2Hash(password);\n  const isValid = await TOPAYCrypto.argon2Verify(password, hash);\n}\n\n// Encryption with ChaCha20-Poly1305\nasync function encryptionExample() {\n  const key = TOPAYCrypto.generateRandomBytes(32);\n  const nonce = TOPAYCrypto.generateRandomBytes(12);\n  const plaintext = new TextEncoder().encode('Secret message');\n  \n  const { ciphertext, tag } = await TOPAYCrypto.chacha20poly1305Encrypt(key, nonce, plaintext);\n  const decrypted = await TOPAYCrypto.chacha20poly1305Decrypt(key, nonce, ciphertext, tag);\n}\n```\n\n### Quantum-Resistant Features\n\n```javascript\nconst TOPAYCrypto = require('topay-01');\n\n// Kyber Key Exchange\nasync function kyberExample() {\n  const aliceKeyPair = await TOPAYCrypto.kyberGenerateKeyPair();\n  const { ciphertext, sharedSecret: bobSharedSecret } = await TOPAYCrypto.kyberEncapsulate(aliceKeyPair.publicKey);\n  const aliceSharedSecret = await TOPAYCrypto.kyberDecapsulate(aliceKeyPair.privateKey, ciphertext);\n}\n\n// Dilithium Digital Signatures\nasync function dilithiumExample() {\n  const keyPair = await TOPAYCrypto.dilithiumGenerateKeyPair();\n  const message = 'This message is signed with a quantum-resistant algorithm';\n  const signature = await TOPAYCrypto.dilithiumSign(keyPair.privateKey, message);\n  const isValid = await TOPAYCrypto.dilithiumVerify(keyPair.publicKey, message, signature);\n}\n\n// SPHINCS+ Digital Signatures\nasync function sphincsExample() {\n  const keyPair = await TOPAYCrypto.sphincsGenerateKeyPair();\n  const message = 'This message is signed with SPHINCS+';\n  const signature = await TOPAYCrypto.sphincsSign(keyPair.privateKey, message);\n  const isValid = await TOPAYCrypto.sphincsVerify(keyPair.publicKey, message, signature);\n}\n```\n\n## API Documentation\n\nSee the [types/index.d.ts](types/index.d.ts) file for complete API documentation.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopay-foundation%2Ftopay-01","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopay-foundation%2Ftopay-01","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopay-foundation%2Ftopay-01/lists"}