Session Keys
Session keys play a vital role in securing cryptographic operations. The Vortex Crypto API simplifies the management of session keys, ensuring a secure and user-friendly process for generating and using these keys
Session Keys
Session keys play a vital role in securing cryptographic operations. The Vortex Crypto API simplifies the management of session keys, ensuring a secure and user-friendly process for generating and using these keys.
In this guide, you’ll find:
- How to generate new session keys using the Vortex Crypto API
- A clear example of a POST request for session key generation
- Details on how to use the session ID in encryption operations
Overview
Session keys are an essential aspect of cryptographic operations, providing temporary encryption keys that can be used for a session's duration. The Vortex Crypto API includes a session dispatcher for creating new session keys, simplifying the process of managing encryption keys securely.
Generating New Session Keys
To generate a new session key, you only need to make a POST request to the session dispatcher endpoint without any additional parameters. The operation is straightforward and requires minimal input, focusing on ease of use and security.
Request Example:
POST /dispatch HTTP/1.1
Host: localhost:9200
Request-ID: YOUR_REQUEST_ID
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
{
"dispatch": {
"operation": "session"
}
}Upon successful execution of this request, the API will return the ID of the newly created session as a string. This session ID can then be used in subsequent cryptographic operations that require or support session-based encryption keys.
Updated 7 months ago
