Skip to content

Commit 908b7b9

Browse files
committed
encryption 번역
1 parent a2c141f commit 908b7b9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

encryption.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# 암호화
2+
3+
- [소개](#introduction)
4+
- [기본 사용법](#basic-usage)
5+
6+
<a name="introduction"></a>
7+
## 소개
8+
9+
라라벨은 Mcrypt PHP 확장을 통해 강력한 AES 암호화를 제공합니다
10+
11+
<a name="basic-usage"></a>
12+
## 기본 사용법
13+
14+
#### 값을 암호화
15+
16+
$encrypted = Crypt::encrypt('secret');
17+
18+
> **주의:** `config/app.php` 파일의 `key` 옵션에 16, 24, 또는 32 자릿수의 랜덤 문자열을 설정해야야 합니다. 그렇지 않을 경우 암호화된 값이 안전하지 않습니다.
19+
20+
#### 값을 복호화
21+
22+
$decrypted = Crypt::decrypt($encryptedValue);
23+
24+
#### 암호(cipher) 및 모드 설정
25+
26+
또한 암호기가 사용하는 암호와 모드를 설정 할 수 있습니다:
27+
28+
Crypt::setMode('ctr');
29+
30+
Crypt::setCipher($cipher);

0 commit comments

Comments
 (0)