Encrypt Query String Javascript (edit)
Mã hóa Query String trên URL
var params = {width:1680, height:1050};
var str = jQuery.param(params);
console.log(str);
console.log(btoa(str)); // => d2lkdGg9MTY4MCZoZWlnaHQ9MTA1MA==
console.log(atob("d2lkdGg9MTY4MCZoZWlnaHQ9MTA1MA=="));
Tham khảo thêm
btoa: Binary to ASCII
atob: ASCII to Binary
https://developer.mozilla.org/ru/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/atob
https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa
http://paginaswebpublicidad.com/questions/47073/ma-hoa-mot-id-trong-mot-url-trong-asp-net-mvc
Mã hóa & Bảo mật ứng dụng
https://kipalog.com/posts/30-doan-bieu-thuc-chinh-quy-ma-lap-trinh-vien-web-nen-biet
https://tedu.com.vn/bao-mat/series-bao-mat-trong-aspnet-mvc-1-cau-hinh-custom-error-page-95.html
https://tedu.com.vn/bao-mat/series-bao-mat-trong-aspnet-mvc-4-upload-cac-tep-tin-co-hai-98.html
https://tedu.com.vn/bao-mat/series-bao-mat-trong-aspnet-mvc-5-ro-ri-thong-tin-may-chu-99.html
How can I use console logging in Internet Explorer?
You can access IE8 script console by launching the "Developer Tools" (F12). Click the "Script" tab, then click "Console" on the right.
From within your JavaScript code, you can do any of the following:
<script type="text/javascript"> console.log('some msg'); console.info('information'); console.warn('some warning'); console.error('some error'); console.assert(false, 'YOU FAIL'); </script>
Also, you can clear the Console by calling console.clear().
NOTE: It appears you must launch the Developer Tools first then refresh your page for this to work.