chore(xo-server/checksum): documentation

This commit is contained in:
Julien Fontanet 2018-03-13 15:56:26 +01:00
parent f45935aa44
commit c239b518e0

View File

@ -7,6 +7,9 @@ import { defer, fromEvent } from 'promise-toolbox'
import { invert } from 'lodash' import { invert } from 'lodash'
import { type Readable, type Transform } from 'stream' import { type Readable, type Transform } from 'stream'
// Format: $<algorithm>$<salt>$<encrypted>
//
// http://man7.org/linux/man-pages/man3/crypt.3.html#NOTES
const ALGORITHM_TO_ID = { const ALGORITHM_TO_ID = {
md5: '1', md5: '1',
sha256: '5', sha256: '5',