Junyi 4b91d890cf
refactor(utils): move md5 to utils (#6468)
* refactor(utils): move md5 to utils

* fix(utils): fix export

* fix(utils): add missed file
2025-03-14 22:19:20 +08:00

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');
}