{"id":159607,"student_id":10,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\u003ctitle\u003eDocument\u003c/title\u003e\\n\\t\u003clink rel=\\\"stylesheet\\\" href=\\\"https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css\\\"\u003e\\n\\t\u003cscript src=\\\"https://code.jquery.com/jquery-1.8.3.min.js\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://travistidwell.com/jsencrypt/bin/jsencrypt.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody class=\\\"p-3\\\"\u003e\\n \u003ch4\u003e私鑰\u003c/h4\u003e\\n \u003ctextarea class=\\\"form-control\\\" id=\\\"privateKey\\\" rows=\\\"4\\\"\u003e\u003c/textarea\u003e\\n \u003ch4\u003e公鑰\u003c/h4\u003e\\n \u003ctextarea class=\\\"form-control\\\" id=\\\"publicKey\\\" rows=\\\"4\\\"\u003e\u003c/textarea\u003e\\n \u003cbutton id=\\\"generator\\\" class=\\\"btn btn-warning\\\"\u003e產生鑰匙\u003c/button\u003e\\n \\n \u003ch4\u003e加密前\u003c/h4\u003e\\n \u003cinput class=\\\"form-control\\\" id=\\\"inputA\\\"/\u003e\\n \u003ch4\u003e加密後\u003c/h4\u003e\\n \u003cinput class=\\\"form-control\\\" id=\\\"inputB\\\"/\u003e\\n \u003cbutton id=\\\"exec\\\" class=\\\"btn btn-warning\\\"\u003e加密/解密\u003c/button\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n text-align: center;\\n}\\n\\ntextarea {\\n font-size: 10px;\\n}\",\"js\":\"$('#generator').click(generator);\\n\\n\\nfunction generator () {\\n var crypt = new JSEncrypt({ default_key_size: 1024 });\\n \\n var privateKey = crypt.getPrivateKey();\\n var publicKey = crypt.getPublicKey();\\n \\n $('#privateKey').val(privateKey);\\n $('#publicKey').val(publicKey);\\n}\\n\\n\\nfunction exec () {\\n var textA = $('#inputA').val();\\n var textB = $('#inputB').val();\\n var privateKey = $('#privateKey').val();\\n var publicKey = $('#publicKey').val();\\n\\n var crypt = new JSEncrypt();\\n\\n if (textA) {\\n crypt.setPublicKey(publicKey);\\n var result = crypt.encrypt(textA);\\n $('#inputA').val('');\\n $('#inputB').val(result);\\n } else {\\n crypt.setPrivateKey(privateKey);\\n var result = crypt.decrypt(textB);\\n $('#inputA').val(result);\\n $('#inputB').val('');\\n }\\n}\\n\\n$('#exec').click(exec);\"}","created_at":"2020-06-17T17:33:56.806+08:00","updated_at":"2020-06-17T18:18:17.178+08:00","name":"rsa 對稱加密_概念","language":"web","screenshot":{"url":"/uploads/project/screenshot/159607/5ef938082c0d967ea205e24d8bbf5fcf.jpg"},"parent_id":3,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":435,"hashid":"p93s93pm","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2779702,"file_name":"koding.png","project_id":159607,"asset_id":182920,"created_at":"2020-06-17T17:33:56.811+08:00","updated_at":"2020-06-17T17:33:56.811+08:00"}]
Orange Apple Learning Platform
My Projects
View Project Page
Export
Remix
Import
Delete
Download Android APP (APK)
Screenshot
Open Web Site
繁中
简中
English
日本語
1:1:1
1:1
Full Width
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer