mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
12 lines
268 B
TypeScript
12 lines
268 B
TypeScript
import CryptoJS from "crypto-js";
|
|
|
|
export default class Crypto {
|
|
public static getMd5Hash(text: string): string {
|
|
return CryptoJS.MD5(text).toString();
|
|
}
|
|
|
|
public static getSha256Hash(text: string): string {
|
|
return CryptoJS.SHA256(text).toString();
|
|
}
|
|
}
|