- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
947 B
Markdown
28 lines
947 B
Markdown
# md5hex
|
|
Thin wrapper around the crypto module that creates an MD5 hex digest of a given string or buffer
|
|
|
|
```js
|
|
// Basic usage
|
|
var hexHash = md5hex('A string you want to hash'); // (You can also pass in a buffer)
|
|
// 'afb6e4ac5196aa6cddcfbd8fe26cf65b'
|
|
|
|
|
|
// Optional second argument lets you trim the length
|
|
var hexHash = md5hex('A string you want to hash', 6);
|
|
// 'afb6e4'
|
|
|
|
// Or you can give an options object as the second argument to add a salt
|
|
var hexHash = md5hex('A string you want to prefix with a salt', {salt: 'MYSALT!'})
|
|
// Same as md5hex('MYSALT!' + 'A string you want to prefix with a salt')
|
|
|
|
var hexHash = md5hex('A string you want to prefix with a salt', {saltPrefix: 'SALT!', saltSuffix: 'MORESALT!'})
|
|
// Same as md5hex('SALT!' + 'A string you want to prefix with a salt' + 'MORESALT!')
|
|
|
|
// And control the length through the options object
|
|
var hexHash = md5hex('A string you want a short hash of', {length: 6});
|
|
// '30540f'
|
|
|
|
|
|
|
|
```
|