plasma-umass / doppio

Breaks the browser language barrier (includes a plugin-free JVM).
http://plasma-umass.github.io/doppio-demo
MIT License
2.16k stars 174 forks source link

SHA-256 MessageDigest not available #449

Closed jimfb closed 8 years ago

jimfb commented 8 years ago
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

            String input = "noise";
            MessageDigest md = MessageDigest.getInstance("SHA-256");
            md.update(input.getBytes());
            byte[] digest = md.digest();
            byte[] multihash = new byte[2 + digest.length];
            multihash[0] = 0x12;
            multihash[1] = 0x20;
            System.arraycopy(digest, 0, multihash, 2, digest.length);

Throws "SHA-256 MessageDigest not available". Should be a relatively easy fix if someone wants to grab this one.

hrj commented 8 years ago

@jvilk It's working in doppio command line as well as through Javapoly after the fix for #452. The underlying issue might be the same; missing JCL libraries from the bootstrap classpath. You could probably close this issue now.