Skip to content

Base64 may not be URL safe #26

@Rohitrajak1807

Description

@Rohitrajak1807

const hash = crypto.createHash("sha256").update(url).digest("base64")

@hnasr base64 encoding used in the URL shortener may have a '/' un the URL_ID, so using digest('base64url') is advised to avoid this.

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