<!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>
