Backend: - Add registry_address configuration API (GET/POST) - Add tar image upload with OCI and Docker format support - Add image download with streaming optimization - Fix blob download using c.Send (Fiber v3 SendStream bug) - Add registry_address prefix stripping for all OCI v2 endpoints - Add AGENTS.md for project documentation Frontend: - Add settings store with Snackbar notifications - Add image upload dialog with progress bar - Add download state tracking with multi-stage feedback - Replace alert() with MUI Snackbar messages - Display image names without registry_address prefix 🤖 Generated with [Qoder](https://qoder.com)
21 lines
375 B
Go
21 lines
375 B
Go
package tool
|
|
|
|
import "testing"
|
|
|
|
func TestEncPassword(t *testing.T) {
|
|
password := "123456"
|
|
|
|
result := EncryptPassword(password, RandomString(8), 50000)
|
|
|
|
t.Logf("sum => %s", result)
|
|
}
|
|
|
|
func TestPassword(t *testing.T) {
|
|
p := "wahaha@123"
|
|
p = NewPassword(p)
|
|
t.Logf("password => %s", p)
|
|
|
|
result := ComparePassword("wahaha@123", p)
|
|
t.Logf("compare result => %v", result)
|
|
}
|