Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 웹하드추천
- Linux
- JSON
- Session
- php
- OOP
- file-upload
- MySQL
- 무료다운로드쿠폰
- 경영
- JavaScript
- Regex
- Ajax
- Apache
- Arrays
- UTF-8
- Forms
- variables
- function
- jquery
- 전략
- composer-php
- date
- 웹하드순위
- string
- Laravel
- HTML
- post
- curl
Archives
- Today
- Total
목록ECB (1)
개발! 딱 깔끔하고 센스있게!
PHP 는 TripleDes, PKCS7 과 ECBs 암호 화 / 복호화 를 사용 합 니 다.
내 암호 함수 가 정상적으로 작 동 하지만 복호화 함수 가 올 바른 출력 을 내 도록 하 는 방법 을 모 르 겠 습 니 다. 다음은 나의 암호 함수: function Encrypt($data, $secret) { //Generate a key from a hash $key = md5(utf8_encode($secret), true); //Take first 8 bytes of $key and append them to the end of $key. $key .= substr($key, 0, 8); //Pad for PKCS7 $blockSize = mcrypt_get_block_size('tripledes', 'ecb'); $len = strlen($data); $pad = $blockSize - ($l..
개발 스크랩 메모/PHP
2020. 11. 27. 02:40