Skip to content

Add hash function for secure identifiers #113

@eoln

Description

@eoln

Implement SHA256 hashing for API keys and secrets to prevent exposure in DO names.

function hashIdentifier(identifier: string): string {
  return createHash('sha256')
    .update(identifier)
    .digest('hex')
    .substring(0, 12);
}

Parent

Phase 1: Service Scaffold + Core DO (#100)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions