Crittora Secure quickstart
Use this flow to protect a payload, save the returned encrypted_data, and later decrypt and verify it with authorized Crittora Secure credentials.
Start here
- Create a Crittora Secure account.
- Copy the username, password, partner ID, API key, access key, and secret key.
- Paste the credentials into the browser-based code generator if you want language-specific examples.
- Run sign-encrypt, then pass the returned encrypted_data into decrypt-verify.
Sign and encrypt
Call sign-encrypt with the data you want to protect. The permissions array can include approved partner IDs when access should be scoped beyond the issuing credentials.
1curl --location 'https://managed.crittoraapis.com/sign-encrypt' \
2 --header "username: <username>" \
3 --header "password: <password>" \
4 --header "access_key: <access_key>" \
5 --header "api_key: <api_key>" \
6 --header "secret_key: <secret_key>" \
7 --header 'Content-Type: text/plain' \
8 --data '{
9 "data": "sensitive information to encrypt",
10 "permissions": []
11 }'Decrypt and verify
Send the returned encrypted_data to decrypt-verify. Authorized recipients decrypt the payload and verify the signature before trusting the data.
1curl --location 'https://managed.crittoraapis.com/decrypt-verify' \
2 --header "username: <username>" \
3 --header "password: <password>" \
4 --header "access_key: <access_key>" \
5 --header "api_key: <api_key>" \
6 --header "secret_key: <secret_key>" \
7 --header 'Content-Type: text/plain' \
8 --data '{"encrypted_data": "<encrypted_data>"}'Code generator
The generator at https://secure.crittora.com/code-generator.html creates examples for TypeScript, JavaScript, Python, Go, Java, C#, Ruby, PHP, PowerShell, COBOL, and cURL. It also supports environment variable snippets, inline examples, and a Postman collection download.
Credentials are displayed once after trial or app client creation. Store them securely before leaving the success page.
Pro app client permissions
| Code | Permission |
|---|---|
| E | Encrypt |
| D | Decrypt |
| S | Sign |
| V | Verify |
