Dart Crypto early access
The Dart project just saw its first crypto libraries land , specifically for SHA1 and SHA256. Also appearing is HMAC support. Learn how to use these very new libraries in this post. This new functionality is very new. You'll need to pull the latest from the bleeding_edge branch, as of 2012-04-30. It's so new, it's not even wired into the dart: library scheme, nor is it in the SDK yet. I expect crypto libs to get the full SDK treatment very soon. Here's an example of how to create a SHA256 hash and convert to a hex string: #import('../dart/lib/crypto/crypto.dart'); // Want this in the crypto lib? Star this bug: http://code.google.com/p/dart/issues/detail?id=2839 String digestToString(List<int> digest) { var buf = new StringBuffer(); for (var part in digest) { buf.add("${(part < 16) ? "0" : ""}${part.toRadixString(16).toLowerCase()}"); } return buf.toString(); } main() { var sha = new SHA256()...