func main() {
app := fiber.New()
app.Use(sensitive.New(sensitive.Config{
Keys: []string{
"citizen_id",
},
}))
// ... Handlers ...
}
git clone https://github.com/owlsome-official/sensitive.git && cd sensitive/example
go mod tidy
go run main.go
# for original response
curl --request GET --url http://localhost:5000/original
# or
# for /blinded response
curl --request GET --url http://localhost:5000/blinded
- VSCode Extension: REST Client to using
*.http
file for testing request