Skip to content

Backend: Implement API key generation and hashing service #7

@supreme2580

Description

@supreme2580

Description
Allow merchants to generate secure API keys for server-to-server integrations.

Requirements

  • Create POST /apikeys endpoint.
  • Logic:
    • Generate 32-byte cryptographically random key.
    • Prefix with sp_live_.
    • Store only the SHA256 hash of the key in the database (key_hash).
  • Response: Return the plaintext key only once to the merchant.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions