Skip to Content
HTTP 완벽 가이드
book

HTTP 완벽 가이드

by David Gourlry, Brian Totty, Lee Eung Jun, Sang -Il Jeong, Anshu Agarwal, Seilu Reddy, Marjorie Sayre
May 2022
Beginner to intermediate
756 pages
21h 30m
Korean
Insight
Content preview from HTTP 완벽 가이드
663
부록 E base-64 인코딩
The Definitive Guide
E.3
Base
-
64
패딩
Base-64 인코딩은 일련의 8비트 바이트들을 받아서 그 비트 스트림을 6비트 덩어
리로 조각낸다. 그 일련의 비트들이 고르게 6비트 조각으로 나뉘는 일은 별로 없다.
6비트 조각으로 고르게 나뉘지 않았다면, 그 길이를 24비트(6비트와 8비트의 최소
공배수)로 만들고 남은 공간은 0비트로 채운다.
패딩된 비트 문자열을 인코딩할 때, 완전히 패딩된(원 데이터에서의 어떤 비트도
포함하지 않은) 6비트의 그룹은 특별한 65번째 기호인 “=”로 표현된다. 만약 6비트
의 그룹이 부분적으로 패딩되었다면, 패딩 비트들은 모두 0으로 설정된다.
표 E-2는 패딩의 예를 보여주고 있다. 초기 입력 문자열 “a:a”의 길이는 3바이트,
즉 24비트이다. 24는 6과 8의 배수이므로 패딩은 필요하지 않다. base-64 인코딩한
결과는 문자열 “YTph”이다.
입력 데이터 이진 수열(패딩은 “
x
”로 표현되어 있다) 인코딩된 데이터
a
:
a 011000
010011
101001
100001 YTph
a
:
aa 011000
010011
101001
100001
011000
01xxxx
xxxxxx
xxxxxx YTphYQ
==
a
:
aaa 011000
010011
101001
100001 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

몽고DB 완벽 가이드(3판): 실전 예제로 배우는 NoSQL 데이터베이스 기초부터 활용까지

몽고DB 완벽 가이드(3판): 실전 예제로 배우는 NoSQL 데이터베이스 기초부터 활용까지

김인범, 크리스티나 초도로우, 섀넌 브래드쇼, 오언 브라질

Publisher Resources

ISBN: 9788966261208