feat: add basic workings
This commit is contained in:
@@ -3,15 +3,10 @@ package security
|
||||
import (
|
||||
"crypto/rand"
|
||||
"encoding/base64"
|
||||
"orbits-server/internal/shared/utility"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
func GenerateSafeCategoryName(category utility.MediaType, ext string) string {
|
||||
return uuid.New().String() + "_" + string(category) + ext
|
||||
}
|
||||
|
||||
func GenerateSafeName() string {
|
||||
return uuid.New().String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user