javascript_playground icon indicating copy to clipboard operation
javascript_playground copied to clipboard

Base64 may not be URL safe

Open Rohitrajak1807 opened this issue 3 years ago • 0 comments

https://github.com/hnasr/javascript_playground/blob/bc01f3c07fef893ceefd465fb32b655b36b1b214/sharding/index.js#L65

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

Rohitrajak1807 avatar Jul 03 '21 13:07 Rohitrajak1807