This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.security.*; | |
import java.security.spec.X509EncodedKeySpec; | |
import java.util.Base64; | |
import javax.crypto.Cipher; | |
public class E2EE { | |
private KeyPair keyPair; | |
private String publicKey; | |
private String privateKey; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre id="logs"></pre> | |
<script> | |
// utilities | |
let arr = new Uint32Array(2); | |
let arr64 = new Float64Array(arr.buffer); // use same buffer | |
function floatToInt(float) { | |
arr64[0] = float; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install --http-proxy http://user:[email protected]:8080 bundler |