Last active
December 31, 2015 18:25
-
-
Save dwijnand/956777 to your computer and use it in GitHub Desktop.
Find out available MessageDigest implementations
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 scala.collection.JavaConverters._ | |
object T { | |
def main(args: Array[String]): Unit = | |
java.security.Security.getProviders.iterator | |
.flatMap(p => p.keySet.asScala) | |
.map(_.asInstanceOf[String].split(" ")(0)) | |
.collect { | |
case k if k startsWith "MessageDigest." => k substring 14 | |
case k if k startsWith "Alg.Alias.MessageDigest." => k substring 24 | |
} | |
.toSeq.sorted foreach println | |
} |
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
1.3.14.3.2.26 | |
2.16.840.1.101.3.4.2.1 | |
2.16.840.1.101.3.4.2.2 | |
2.16.840.1.101.3.4.2.3 | |
2.16.840.1.101.3.4.2.4 | |
MD2 | |
MD5 | |
MD5 | |
OID.1.3.14.3.2.26 | |
OID.2.16.840.1.101.3.4.2.1 | |
OID.2.16.840.1.101.3.4.2.2 | |
OID.2.16.840.1.101.3.4.2.3 | |
OID.2.16.840.1.101.3.4.2.4 | |
SHA | |
SHA | |
SHA-1 | |
SHA-224 | |
SHA-256 | |
SHA-384 | |
SHA-512 | |
SHA1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment