aboutsummaryrefslogtreecommitdiffstats
path: root/modules/secret/secret.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/secret/secret.go')
-rw-r--r--modules/secret/secret.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/secret/secret.go b/modules/secret/secret.go
index 6b410f2381..e7edc7a95e 100644
--- a/modules/secret/secret.go
+++ b/modules/secret/secret.go
@@ -13,20 +13,8 @@ import (
"encoding/hex"
"errors"
"io"
-
- "code.gitea.io/gitea/modules/util"
)
-// New creates a new secret
-func New() (string, error) {
- return NewWithLength(44)
-}
-
-// NewWithLength creates a new secret for a given length
-func NewWithLength(length int64) (string, error) {
- return util.CryptoRandomString(length)
-}
-
// AesEncrypt encrypts text and given key with AES.
func AesEncrypt(key, text []byte) ([]byte, error) {
block, err := aes.NewCipher(key)