본문 바로가기

개발이야기

Web-Safe Base64-Encoding

반응형

Base 64 Encoding with URL and Filename Safe Alphabet ( web-safe Base64 )

RFC 4648 secion 5. 

5. Base 64 Encoding with URL and Filename Safe Alphabet

The Base 64 encoding with an URL and filename safe alphabet has been used in [12].

An alternative alphabet has been suggested that would use "~" as the 63rd character.
Since the "~" character has special meaning in some file system environments, the encoding described in this section is recommended instead. The remaining unreserved URI character is ".", but some file system environments do not permit multiple "." in a filename, thus making the "." character unattractive as well. The pad character "=" is typically percent-encoded when used in an URI [9], but if the data length is known implicitly, this can be avoided by skipping the padding; see section 3.2. This encoding may be referred to as "base64url". This encoding should not be regarded as the same as the "base64" encoding and should not be referred to as only "base64". Unless clarified otherwise, "base64" refers to the base 64 in the previous section. This encoding is technically identical to the previous one, except for the 62:nd and 63:rd alphabet character, as indicated in Table 2.

 

반응형

'개발이야기' 카테고리의 다른 글

libqdbm.4.dylib (맥북 터미널 실행 안될때 )  (0) 2019.05.27
PGP sign and encrypt  (0) 2019.05.16
Idempotency (멱등성)  (0) 2019.05.14
구글 io 요약  (0) 2019.05.08
assertThat 이 편해 assertEquals 가 편해 ?  (0) 2019.04.24