cifer-sdk / examples
Demonstrates all web2.* functions from the CIFER SDK. No blockchain wallet needed — uses email registration and Ed25519 session signing.
Create a new account with email and password. Verify via OTP and register an Ed25519 key for session signing.
Create a managed session using your Ed25519 key. Sessions are auto-renewable and required for all authenticated operations.
Create new Web2 secrets and list all secrets owned by your principal. Secrets are used for encryption/decryption.
Set or remove a delegate for a Web2 secret. Delegates can encrypt/decrypt data using your secret.
Request permits for key rotation (email+password), secret transfer, or delegation operations.
Look up a principal by email address. Returns the principal UUID and email hex.
Encrypt a plaintext message and decrypt it on one page. Encryption results are auto-populated into the decrypt inputs.
Encrypt a file into a .cifer.zip and decrypt it back — all on one page. Each operation runs as a background job.
View encryption and decryption usage stats, plan limits, and remaining quota for the current billing period.
State is shared across pages via React Context. Register first, then navigate to other pages to use your session.