security

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanCSP added in v1.5.0

func CleanCSP(csp string) string

CleanCSP removes quotes, newlines and normalizes spaces in a CSP string

func DecryptPassword

func DecryptPassword(encrypted string) (string, error)

func EncryptPassword

func EncryptPassword(password string) (string, error)

func MergeCSP added in v1.5.0

func MergeCSP(globalCSP, siteCSP string) string

MergeCSP merges two Content-Security-Policy strings, giving priority to siteCSP without overriding protected directives

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL