encrypting string in javascript without external library -
basically, i'd have javascript function checks whether you've entered specific string -- don't want string visible in source code. in mind, go this:
function checkpass(input) { if (encrypt(input) === 'ojqqyaqud4aplzvag3fvcii8os9qbr23tlzwwjbw') { alert('success'); } else { alert('fail'); } } function encrypt(input) { //pass through encryption algorithm }
how might accomplish –– ideally, without external libraries?
because javascript can seen in source, there not can do.
minify - in order make harder read , obfuscation
another thing use http://javascript2img.com/ make hard read.
Comments
Post a Comment