<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<br>
<div>平文 (半角190字まで、全角126字弱まで)<br>
<textarea id="plain"></textarea>
</div>
<button id="encrypt_button" onclick="encrypt()">平文 → 暗号文</button>
<div>暗号文 (短くて350字ほど)<br>
<textarea id="encrypted"></textarea>
</div>
<label for="show_decryption_ui"><button onclick="document.getElementById('show_decryption_ui').checked = !document.getElementById('show_decryption_ui').checked;">
復号UI
</button></label>
<input id="show_decryption_ui" type="checkbox">
← do not touch.
<div id="for_decrypter">
<div>public key<br>
<textarea id="public" disabled>
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu9BE2aLt4fhmgLYVzl6vPbcwPgC72Bt9K6WfOf3PM9WeVGk9CpDE8TFZPtj3loh6HnmNqnbTwbTsVTo4tD7kQrfeJkVrvNLbNO3CiIAF6cxUE1RBcSgDU6xpPIX5ERv80+/dfBJzNWbc1VgepI6j7M2WQmb+fgM7eAs18yQTHLaNY1Zku20Q+CefJ6FcIo4+bWwq09kB1lGhqZSvv8mW1ytvKQ7mcS30Quov1zRMkC8NtNrZP4Z7CTTxY9bCcFXHXn3V7ypWNKXhZFLsj3okpiYMNWH+UbTOCUawcyhyYeEbv8iQHm4cpvLluSDCeod6bgJnZVi+ZBSkYFQKvCroNQIDAQAB
</textarea>
</div>
<div>private key<br>
<textarea id="private"></textarea>
</div>
<button id="decrypt_button" onclick="decrypt()">暗号文 → 平文</button>
<button id="generate_button">鍵ペア生成</button>
<div>decrypted<br>
<textarea id="decrypted"></textarea>
<div id="error"></div>
</div>
</body>
</html>
Output
300px
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |