uuid3-by-string
Version:
Generating uuid-hash from string
43 lines (41 loc) • 2.04 kB
JavaScript
const { longText } = require('./longText')
module.exports.samples = [
{
title: 'empty string',
// prettier-ignore
md5Hash: new Uint8Array([212, 29, 140, 217, 143, 0, 178, 4, 233, 128, 9, 152, 236, 248, 66, 126]),
uuidV3: 'd41d8cd9-8f00-3204-a980-0998ecf8427e',
string: ''
},
{
title: 'hello world',
// prettier-ignore
md5Hash: new Uint8Array([134, 251, 38, 157, 25, 13, 44, 133, 246, 224, 70, 140, 236, 164, 42, 32]),
uuidV3: '86fb269d-190d-1e85-b6e0-468ceca42a20',
string: 'Hello world!'
},
{
title: 'lorem ipsum',
// prettier-ignore
md5Hash: new Uint8Array([9, 86, 210, 251, 213, 213, 194, 152, 68, 164, 210, 30, 210, 247, 110, 12]),
uuidV3: '0956d2fb-d5d5-1e98-84a4-d21ed2f76e0c',
string: 'Lorem ipsum'
},
{
title: 'utf-8 string',
// prettier-ignore
md5Hash: new Uint8Array([255, 109, 147, 96, 22, 99, 155, 111, 152, 42, 40, 37, 1, 169, 126, 95]),
uuidV3: 'ff6d9360-1663-1f6f-982a-282501a97e5f',
string:
'ヒューマニズムは、イデオロギー的ヒューマニズムを発見します。多くの国では、フランスの最も例示的な例その中で、個人崇拝は政治文化の英米の種類を証明しています。社会経済発展は、伝統的な概念によると、国民投票を決定します。特に政治的不安定の状態でパワーのメカニズム、不均一。それは逆説的に見えるかもしれませんように政治的な紛争管理は、一意の機能キリスト教民主主義ナショナリズムです。近代化の概念は、マルクス主義を証明しています。'
},
{
title: 'very long string',
// prettier-ignore
md5Hash: new Uint8Array([52, 229, 134, 18, 32, 250, 249, 120, 187, 225, 101, 107, 52, 171, 47, 47]),
// prettier-ignore
sha1Hash: new Uint8Array([200, 19, 134, 199, 116, 79, 170, 249, 72, 153, 207, 221, 20, 102, 74, 167, 202, 90, 145, 223]),
uuidV3: '34e58612-20fa-1f78-bbe1-656b34ab2f2f',
string: longText
}
]