安全的Go语言HTML-Golang开发

时间:2021-05-26 17:47:03
【文件属性】:
文件名称:安全的Go语言HTML-Golang开发
文件大小:124KB
文件格式:ZIP
更新时间:2021-05-26 17:47:03
Golang Security safehtml提供了不可变的类似字符串的类型,用于包装Web类型,例如HTML,JavaScript和CSS。 Safe HTML for go safehtml提供了不可变的类似字符串的类型,用于包装Web类型,例如HTML,JavaScript和CSS。 通过构造这些包装器,可以抵御XSS和类似的Web漏洞,并且只能以安全的方式进行插值。 您可以在我们的白皮书或OWASP演讲中阅读有关我们的Web安全方法的更多信息。 其他子程序包提供用于管理安全规则例外的API,以及模板引擎,其语法和接口与html / t紧密匹配
【文件预览】:
safehtml-main
----url.go(6KB)
----go.mod(77B)
----html.go(4KB)
----identifier.go(3KB)
----script_test.go(3KB)
----stylesheet_test.go(3KB)
----trustedresourceurl.go(8KB)
----doc.go(475B)
----init.go(1KB)
----identifier_test.go(3KB)
----urlset.go(5KB)
----style_test.go(12KB)
----CONTRIBUTING.md(1KB)
----LICENSE(1KB)
----legacyconversions()
--------legacyconversions.go(3KB)
----go.sum(364B)
----example_test.go(3KB)
----README.md(960B)
----html_test.go(4KB)
----style.go(14KB)
----conversions_test.go(6KB)
----trustedresourceurl_test.go(7KB)
----stylesheet.go(4KB)
----script.go(4KB)
----uncheckedconversions()
--------uncheckedconversions.go(6KB)
----template()
--------url.go(5KB)
--------script_example_test.go(731B)
--------doc.go(15KB)
--------escape.go(29KB)
--------init.go(730B)
--------content_test.go(2KB)
--------state_string.go(468B)
--------template.go(23KB)
--------sanitize.go(10KB)
--------error.go(11KB)
--------sanitize_test.go(59KB)
--------testdata()
--------delim_string.go(390B)
--------escape_test.go(26KB)
--------example_test.go(3KB)
--------context.go(7KB)
--------examplefiles_test.go(5KB)
--------clone_test.go(7KB)
--------redefine_test.go(4KB)
--------trustedtemplate_test.go(445B)
--------template_test.go(4KB)
--------url_test.go(5KB)
--------trustedsource.go(4KB)
--------uncheckedconversions()
--------transition_test.go(2KB)
--------trustedtemplate.go(1KB)
--------sanitizers.go(24KB)
--------transition.go(8KB)
--------trustedsource_test.go(4KB)
----internal()
--------raw()
--------safehtmlutil()
--------template()
----testconversions()
--------testconversions.go(3KB)

网友评论