CSS本身没有什么安全性可言,也不需要加密。而有些时候为了保护指定的样式表,可以采用混淆的方法扰乱查看者的视听。
比如下面这段:
@charset "utf-8"; /* Theme Name: linstyle Version: 1.0 Author: perfume */ /*leuryle@s.csssss@@t u)ryles uryles.cs@0syle uryles.css0s.c u u@ryl@es.@css0ryles.cs t ury@leuryle@s.csssss@@t uryles uryles.cs@0syle uryles.css0s.c u u*/@0i0m000por000t 00u0rl00("i00ma0ges/linstyle.css");mport uryles.c ur@0yles.c(ss) u@ryles.css ur(yles.c@ss ur uryles uryles.ct u@ryless.cs@t uryles uryles.cs@0syle uryles.c(0ss0s.c u u@ryl@es.@css0ryles.cs t ury@leuryle@s.csssss@@t u)ryles ur\\00yles.cs@0syle uryles\\00.css0s.c u u@ryl@es.@(css0ryles.c\\00s t ury@leuryle@s.csssss@@t u)ryles ury\\00les.cs@0syle uryles.css0s.c u u@ryl@es.@css0ryles.cs t ury@leuryle@s.csssss@@t uryles ur\\00yles.cs@0syle uryles.css0s.c u u@ryl@es.@css0ryles.cs t ury@leu\\00ryle@s.cssss\\00s@@t uryles uryles.cs@0syle uryles.css0s.c u u@ryl@es.@css0ryles.cs t ury@leuryle@s.csssss@@t uryles uryles.cs@0syle uryles.css0s.c u u@ryl@es.@css0ryles.cs t ury@leuryle@s.csssss@@t uryles uryles.cs@0syle uryles.css0s.c u u@ryl@es.@css0ryles.cs t ury@leuryle@s.csssss@@t uryles uryles.cs@0syle uryles.css0s.c u u@ry\\00l@es.@css0ryles.cs t ury@leuryle@s.csssss@ <style type="text/css"> <!-- html, body {scrollbar-face-color: #656cac;scrollbar-highlight-color: #a0a6d1;scrollbar-3dlight-color: #7b82c3;scrollbar-darkshadow-color: #3b4295;scrollbar-shadow-color: #7b82c3;scrollbar-arrow-color: #e8eaf9;scrollbar-track-color: #c2c5e6;} --> </style>
其实这个所谓的加密很简单:在CSS里“”、“0”、“00”是会被浏览器忽略的.
举个简单的例子:
style.css
去掉,0什么的之后就是:style.css
© 版权声明
THE END
暂无评论内容