Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
package gist; | |
import java.math.BigInteger; | |
import java.security.SecureRandom; | |
public class MSDBRG { | |
private static BigInteger TWO = new BigInteger("2"); | |
public static void main(String[] args) { |
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
<script> | |
var ec8fc = { | |
valueOf: function () { | |
alert("valueOf1"); | |
return 1; | |
} | |
}; | |
var cd0b2 = { | |
valueOf: function () { | |
alert("valueOf2"); |
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
cd0b2-ec8fc | |
d4ca7-cbb2f | |
cd0b2-ec8fc | |
dd8fd-a90f9 | |
dfaf5-bfb21 | |
aed4b-47351 | |
d1950-f654a | |
b05b8-aa6af | |
fdff0-a95f4 | |
d347b-eff1d |
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
package orig; | |
import java.math.BigInteger; | |
import java.security.InvalidKeyException; | |
import java.security.KeyFactory; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.PrivateKey; | |
import java.security.PublicKey; | |
import java.security.spec.ECFieldFp; | |
import java.security.spec.ECParameterSpec; | |
import java.security.spec.ECPoint; |
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.math.BigInteger; | |
import java.security.InvalidKeyException; | |
import java.security.KeyFactory; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.PrivateKey; | |
import java.security.PublicKey; | |
import java.security.spec.ECFieldFp; | |
import java.security.spec.ECParameterSpec; | |
import java.security.spec.ECPoint; | |
import java.security.spec.ECPrivateKeySpec; |
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
"use strict"; | |
var forEach = require("lodash.foreach"); | |
var chai = require("chai"); | |
var JWE = require("../../lib/jwe"), | |
JWK = require("../../lib/jwk"); | |
var assert = chai.assert; |
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
private static ECKey generateECJWK(final ECKey.Curve curve) | |
throws Exception { | |
final ECParameterSpec ecParameterSpec = curve.toECParameterSpec(); | |
KeyPairGenerator generator = KeyPairGenerator.getInstance("EC"); | |
generator.initialize(ecParameterSpec); | |
KeyPair keyPair = generator.generateKeyPair(); | |
final ECPrivateKey privateKey = (ECPrivateKey) keyPair.getPrivate(); |
I hereby claim:
- I am asanso on github.
- I am asanso (https://keybase.io/asanso) on keybase.
- I have a public key whose fingerprint is D2F4 790B FBB6 B63B B018 6BBB AEA6 60EF 9752 8DD9
To claim this, I am signing this object: