Signas
Secure File Digital Signature & Integrity Verification Tool
Signas is a lightweight digital signature tool built in Python. It uses RSA (2048-bit) asymmetric cryptography to ensure not only file integrity but also the authenticity of the signer.
🔗 Developer API Documentation
For programmatic usage, see: https://github.com/TAICHI1129/Signas/blob/main/api.md
Features
-
RSA Digital Signatures Prevents forgery of signature files (
.signas). -
Strong Tamper Detection Uses SHA-256 with streaming to verify even multi-GB files with low memory usage.
-
Identity Verification Includes signer name and optional GitHub profile.
-
Audit Log All signing and verification activities are automatically recorded in
audit.log. -
Password Protection Private keys are encrypted with a passphrase to prevent misuse if stolen.
Installation
pip install signas
Note: Requires the
cryptographylibrary for RSA functionality.
CLI Usage
1. Generate Key Pair
Before signing, generate your personal key pair:
signas genkey
private_key.pem→ Keep this secretpublic_key.pem→ Share with others for verification
2. Sign a File
Create a signature file to prove authenticity:
signas sign <file> <signer_name> [github_url]
Example:
signas sign data.zip TAICHI1129 https://github.com
3. Verify a File
Verify integrity and authenticity:
signas verify <file>
Requirements:
- Target file
<file>.signaspublic_key.pem
.signas File Format
.signas is a JSON file containing:
-
info- SHA-256 hash
- signer name
- GitHub link (optional)
-
signature- Base64-encoded RSA-PSS signature
Example
{
"info": {
"hash": "5a51be41913d0...",
"signer": "TAICHI1129",
"github": "https://github.com"
},
"signature": "MIIBIjANBgkqh..."
}
Security Notes
-
Private Key Management Losing
private_key.pemor its password means you can no longer sign files. -
Public Key Distribution Always obtain public keys from trusted sources.
Usage Examples
1. Generate Keys (One-time setup)
signas genkey
Input:
- Password to protect your private key
Output:
private_key.pempublic_key.pem
2. Sign a File
Example A (Name only)
signas sign report.pdf "Taro Yamada"
Example B (With GitHub link)
signas sign software.zip "TAICHI1129" "https://github.com"
Input:
- Password set during key generation
Output:
report.pdf.signasorsoftware.zip.signas
3. Verify a File
Run in a directory containing:
- target file
.signasfilepublic_key.pem
signas verify software.zip
Success
✅ Verification Successful
Failure (Tampered)
❌ Verification Failed: File content has been tampered with!
Failure (Invalid Signature)
❌ Verification Failed: Invalid or forged signature.
4. View Audit Log
# Windows
type audit.log
# Mac / Linux
cat audit.log
Example:
[2024-05-20 12:00:00] ACTION: SIGN | FILE: software.zip | STATUS: SUCCESS | Signed by TAICHI1129
5. Hash Only
signas hash sample.txt
Windows Users
If the signas command does not work:
python -m signas.cli
Summary
Signas provides:
- Secure digital signatures (RSA)
- Reliable tamper detection (SHA-256)
- CLI and JSON API support
Use CLI for manual operations and the JSON API for development.
Have a great signature life!
Metadata
Release files for signas 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| signas-0.2.1.tar.gz | 9.0 kB | Without provenance | Details for signas-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| signas-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for signas-0.2.1-py3-none-any.whl |
Total release size: 18.1 kB
Release files / signas-0.2.1.tar.gz
| Download URL | signas-0.2.1.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8575d1a804933059f7e50e5f1fa691f00954aae137c8398791dc1407793bc09e
|
|
BLAKE2b-256 checksum How to use checksums |
c405e1ba36fcdea73cc95abf873307705943a70bedf7577d7948fb680f511867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / signas-0.2.1-py3-none-any.whl
| Download URL | signas-0.2.1-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88b17e2fd3f0bf4801ea88cdffcd35bdb24a76604c6c9214de2702c74f1dff30
|
|
BLAKE2b-256 checksum How to use checksums |
e84e0eb40a5a500eb53cf6aff51da4b04a5d7cdaf4868d229ec4bb463aa12453
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for signas 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.