Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<script>
crypto.subtle.generateKey({name: 'AES-CBC', length: 128}, false, ['encrypt', 'decrypt'])
.then(key => opener.postMessage({key}, '*'))
.catch(error => opener.postMessage({error: error.toString()}, '*'));
</script>