Nytro Posted January 29, 2015 Report Posted January 29, 2015 Better and more secure JavaScript! Because!Just include…<script src="secure.js"></script>…and reap the benefits of really safe and secure JavaScript!;;;;;;;;;; // semicolons make things securer, trust me on this;;;;;;;;;;;;;;;;;;;; ((((( function(){ function log(message){ if ('console' in this && 'log' in console) {{{{ console.log(message); }}}} } // first, test if JavaScript is available document.write('<script>;;;;;var __secure = true;;;;;</script>'); if (!__secure) {{{{ return log("secure.js: security alert: whoa, no JavaScript available!!1!"); }}}} // sanity check that JavaScript actually works if (!(1+1 == 2)) {{{{ return log("secure.js: security alert: nice try, fake JavaScript!!1!"); }}}} // before declaring strict mode, which requires a string, // test if Strings are available if (!'String' in this) {{{{ return log("secure.js: security alert: strings are not available!!1!"); }}}} // improve security by using strict mode "use strict"; return log("secure.js: everything is really secure now!");;;;;;;;;;; } )))))();;;;;;;;;;;;;;;;;;;; // some more security paddingAcest post este un... Sursa: https://github.com/madrobby/secure.js/blob/master/secure.js Quote
mundy. Posted February 6, 2015 Report Posted February 6, 2015 Pamflet !!1! Mi-ai luat-o inainte Quote