Skip to content

Commit

Permalink
Added hashStringToUuid util which converts message/tag strings to UUIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisischris committed Sep 22, 2024
1 parent eaff5d9 commit 13b5b44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/hashStringToUuid.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { createHash } from 'crypto';

export const hashStringToUuid = (input) => {
return createHash('md5').update(input).digest('hex');
}

0 comments on commit 13b5b44

Please sign in to comment.