---
title: 第1回LT Basic認証
tags: 
author: [snuffy](https://www.docswell.com/user/s7fy)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/YJ659GDZ7V.jpg?width=480
description: 第1回LT Basic認証 by snuffy
published: January 22, 24
canonical: https://www.docswell.com/s/s7fy/K38VG1-2024-01-22-131132
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/YJ659GDZ7V.jpg)



# Page. 2

![Page Image](https://bcdn.docswell.com/page/GJ5YNV39J4.jpg)

Q. 堅牢性のあるパスワードとは？
・10桁以上
・記号や数字を使う
・大文字小文字を混在させる
・サービスごとに違うものを設定する
参考: IPA (https://www.ipa.go.jp/security/chocotto/)


# Page. 3

![Page Image](https://bcdn.docswell.com/page/LE352D62J5.jpg)

平文と暗号文の関係性
暗号化
暗号文
平文
sampletxt2024
0bcaf9c5f9c4dcb2ed
復号


# Page. 4

![Page Image](https://bcdn.docswell.com/page/8EDDZPV6EG.jpg)

Basic認証 = 基本認証
RFC7617
ほぼすべてのWebサーバ/ブラウザに対応
参考: IETF RFC Editorより
https://www.rfc-editor.org/info/rfc7617


# Page. 5

![Page Image](https://bcdn.docswell.com/page/V7PXDNRZE8.jpg)

Client
Web site
User name
Password
Web Server


# Page. 6

![Page Image](https://bcdn.docswell.com/page/2JVL1KRM7Q.jpg)

用意するもの
.htaccess
.htpasswd
AuthType Basic
AuthName &quot;Restricted Area&quot;
AuthUserFile C:\xampp\htdocs\.htpasswd
Require valid-user
IS16:$apr1$Bhh0SNON$ACvxIqgjTEK0tSQT2A5Iv.


# Page. 7

![Page Image](https://bcdn.docswell.com/page/5EGX2QMXJL.jpg)

BASE64変換表
参考: IETF Datatracker
(https://datatracker.ietf.org/doc/html/rfc4648#section-4)


# Page. 8

![Page Image](https://bcdn.docswell.com/page/4JQ8PKR57P.jpg)

ご静聴ありがとうございました。
よろしければアンケートにご協力ください


