{"library":"pyrage","title":"pyrage","description":"Python bindings for rage (age in Rust). Provides encryption/decryption using age keys. Version 1.3.0, active development, monthly/bimonthly releases.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install pyrage"],"cli":null},"imports":["from pyrage import x25519"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pyrage import x25519\nfrom pyrage import encrypt, decrypt\n\n# Generate a key\nkeys = x25519.Identity.generate()\nprint(\"Identity (secret):\", str(keys))\nprint(\"Recipient (public):\", str(keys.to_public()))\n\n# Encrypt a message\nplaintext = b\"Hello, age!\"\nrecipients = [keys.to_public()]\nencrypted = encrypt(plaintext, recipients)\nprint(\"Encrypted:\", encrypted)\n\n# Decrypt\nidentities = [keys]\ndecrypted = decrypt(encrypted, identities)\nprint(\"Decrypted:\", decrypted)","lang":"python","description":"Key generation, encryption, and decryption with pyrage.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}