blob: 91c70165f03ec63615ac286dc9ae3555706f49ad (
plain)
1
2
3
4
5
6
|
<!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>
|