{"id":42855,"student_id":1976,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n \u003ctitle\u003eDocument\u003c/title\u003e\\n \u003clink rel=\\\"stylesheet\\\" href=\\\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css\\\" integrity=\\\"sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4\\\" crossorigin=\\\"anonymous\\\"\u003e\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.3.1.slim.min.js\\\" integrity=\\\"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js\\\" integrity=\\\"sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js\\\" integrity=\\\"sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody class=\\\"py-4 px-5\\\"\u003e\\n \u003ch3 class=\\\"text-center\\\"\u003e加密解密神器\u003c/h3\u003e\\n \u003cp class=\\\"text-center\\\"\u003e\\n 想寫日記但又不想被爸媽看懂?\\n \u003cbr\u003e\\n 想寫情書告白但是不想讓草稿被發現?\\n \u003cbr\u003e\\n 想與心儀的對象偷偷傳遞曖昧訊息?\\n \u003cbr\u003e\\n 通通就交給這個加解密神器吧!\\n \u003c/p\u003e\\n \u003cdiv class=\\\"form-group\\\"\u003e\\n \u003ctextarea class=\\\"form-control js-text\\\" rows=\\\"8\\\" placeholder=\\\"要加密解密的訊息...\\\"\u003e\u003c/textarea\u003e\\n \u003c/div\u003e\\n \u003cdiv class=\\\"form-group\\\"\u003e\\n \u003cinput class=\\\"form-control border-warning js-key\\\" placeholder=\\\"金鑰\\\"\u003e\\n \u003c/div\u003e\\n \u003cdiv class=\\\"text-center\\\"\u003e\\n \u003cbutton class=\\\"btn btn-primary js-encrypto\\\"\u003e加密\u003c/button\u003e\\n \u003cbutton class=\\\"btn btn-danger js-decrypto\\\"\u003e解密\u003c/button\u003e\\n \u003c/div\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n background-color: #222;\\n background-image: url('dust.png');\\n}\",\"js\":\"$(\\\".js-encrypto\\\").click(function () {\\n var text = $(\\\".js-text\\\").val();\\n var key = $(\\\".js-key\\\").val();\\n var code = '';\\n for (var i = 0; i \u003c text.length; i++) {\\n var a = text[i].charCodeAt();\\n var b = key.charCodeAt(i%key.length);\\n a = a^b;\\n code += a + ' ';\\n }\\n console.log(text)\\n console.log(key)\\n\\n $('.js-text').val(code.trim())\\n});\\n\\n$(\\\".js-decrypto\\\").click(function () {\\n var text = $(\\\".js-text\\\").val().split(' ');\\n var key = $(\\\".js-key\\\").val();\\n var code = '';\\n for (var i = 0; i \u003c text.length; i++) {\\n var a = text[i]\\n var b = key.charCodeAt(i%key.length);\\n a = a^b\\n code += String.fromCharCode(a);\\n }\\n $(\\\".js-text\\\").val(code);\\n});\\n\\n// // 加密文本\\n// $(\\\".js-encrypto\\\").click(function () {\\n// var text = $(\\\".js-text\\\").val();\\n// var key = $(\\\".js-key\\\").val();\\n// var code = '';\\n// for (var i = 0; i \u003c text.length; i++) {\\n// var a = text[i].charCodeAt();\\n// var b = key.charCodeAt(i%key.length);\\n// a = a^b;\\n// code += a + ' ';\\n// code += a.toString(16) + ' ';\\n// }\\n\\n// $(\\\".js-text\\\").val(code);\\n// });\\n\\n// // 解密文本\\n// $(\\\".js-decrypto\\\").click(function () {\\n// var text = $(\\\".js-text\\\").val().split(' ');\\n// var key = $(\\\".js-key\\\").val();\\n// var code = '';\\n// for (var i = 0; i \u003c text.length; i++) {\\n// var a = parseInt(text[i], 16);\\n// var b = key.charCodeAt(i%key.length);\\n// var a = a^b;\\n// code += String.fromCharCode(a);\\n// }\\n// $(\\\".js-text\\\").val(code);\\n// });\"}","created_at":"2018-09-18T22:33:33.557+08:00","updated_at":"2019-11-07T16:45:51.025+08:00","name":"XOR 對稱加密 副本 副本","language":"web","screenshot":{"url":"https://cdn6.koding.school/uploads/project/screenshot/42855/678924fab4e7109fd6f17a7a7a7be4ee.jpg"},"parent_id":33992,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":401,"hashid":"9ygsr256","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":752224,"file_name":"dust.png","project_id":42855,"asset_id":74955,"created_at":"2018-09-18T22:33:33.567+08:00","updated_at":"2018-09-18T22:33:33.567+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦