This commit is contained in:
xing 2022-10-31 20:04:52 +08:00
parent 1cf6327385
commit 3291d5e5cc

View File

@ -64,10 +64,7 @@ func (p *PasswordHash) getRandomBytes(count int) (r string, err error) {
func (p *PasswordHash) Encode64(input string, count int) (out string) {
i := 0
s := strings.Builder{}
for {
if i >= count {
break
}
for i < count {
v := 0
if i < len(input) {
v = int(input[i])