mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
* refactor(utils): move md5 to utils * fix(utils): fix export * fix(utils): add missed file
15 lines
427 B
TypeScript
15 lines
427 B
TypeScript
/**
|
|
* This file is part of the NocoBase (R) project.
|
|
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
* Authors: NocoBase Team.
|
|
*
|
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
*/
|
|
|
|
import { createHash } from 'crypto';
|
|
|
|
export function md5(input: string) {
|
|
return createHash('md5').update(input).digest('hex');
|
|
}
|