mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
chore(version): bump version
This commit is contained in:
@@ -35,9 +35,15 @@ export const generateHash = (projectName: string, quantity = 3): string => {
|
||||
};
|
||||
|
||||
export const generatePassword = (quantity = 16): string => {
|
||||
return randomBytes(Math.ceil(quantity / 2))
|
||||
.toString("hex")
|
||||
.slice(0, quantity);
|
||||
const characters =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||
let password = "";
|
||||
for (let i = 0; i < quantity; i++) {
|
||||
password += characters.charAt(
|
||||
Math.floor(Math.random() * characters.length),
|
||||
);
|
||||
}
|
||||
return password;
|
||||
};
|
||||
|
||||
export const generateBase64 = (bytes = 32): string => {
|
||||
|
||||
Reference in New Issue
Block a user