pub repository
mirror.p-hatan.ircrypto
2.0.1Library of cryptographic functions.
Readme
Library of cryptographic functions for Dart
A set of cryptographic functions implemented in pure Dart.
- MD5
- SHA1
- SHA265
- HMAC
- Converting a list of bytes into a hex string
- Converting a list of bytes into a base64-encoded string.
- Converting a Base 64 encoded String into list of bytes.
Test status
See http://build.chromium.org/p/client.dart.packages/console
The individual builders are at:
http://build.chromium.org/p/client.dart.packages/builders/packages-windows-crypto http://build.chromium.org/p/client.dart.packages/builders/packages-linux-crypto http://build.chromium.org/p/client.dart.packages/builders/packages-mac-crypto
Disclaimer
Support for this library is given as best effort.
This library has not been reviewed or vetted by security professionals.
Features and bugs
Please file feature requests and bugs at the issue tracker.
Changelog
2.0.1
- Support
convert2.0.0.
2.0.0
Note: There are no APIs in 2.0.0 that weren't also in 0.9.2. Packages that
would use 2.0.0 as a lower bound should use 0.9.2 instead—for example, crypto: ">=0.9.2 <3.0.0".
HashandHmacno longer extendChunkedConverter.
1.1.1
- Properly close sinks passed to
Hash.startChunkedConversion()whenByteConversionSink.close()is called.
1.1.0
-
HmacandHashnow extend the newChunkedConverterclass fromdart:convert. -
Fix all strong mode warnings.
1.0.0
- All APIs that were deprecated in 0.9.2 have been removed. No new APIs have
been added. Packages that would use 1.0.0 as a lower bound should use 0.9.2
instead—for example,
crypto: ">=0.9.2 <2.0.0".
0.9.2+1
- Avoid core library methods that don't work on dart2js.
0.9.2
-
Hash,MD5,SHA1, andSHA256now implementConverter. They convert betweenList<int>s and the newDigestclass, which represents a hash digest. TheConverterAPIs—Hash.convert()andHash.startChunkedConversion—should be used in preference to the old APIs, which are now deprecated. -
SHA1,SHA256, andHMAChave been renamed toSha1,Sha256, andHmac, respectively. The old names still work, but are deprecated. -
Top-level
sha1,sha256, andmd5fields have been added to make it easier to use those hash algorithms without having to instantiate new instances. -
Hashing now works correctly for input sizes up to 2^64 bytes.
Deprecations
-
Hash.add,Hash.close, andHash.newInstanceare deprecated.Hash.convertshould be used for hashing single values, andHash.startChunkedConversionshould be used for hashing streamed values. -
SHA1andSHA256are deprecated. Use the top-levelsha1andsha256fields instead. -
While the
MD5class is not deprecated, thenew MD5()constructor is. Use the top-levelmd5field instead. -
HMACis deprecated. UseHmacinstead. -
Base64Codec,Base64Encoder,Base64Decoder,Base64EncoderSink,Base64DecoderSink, andBASE64are deprecated. Use the Base64 APIs indart:convertinstead. -
CryptoUtilsis deprecated. Use the Base64 APIs indart:convertand the hex APIs in theconvertpackage instead.
0.9.1
- Base64 convert returns an Uint8List
- Base64 codec and encoder can now take an encodePaddingCharacter
- Implement a Base64 codec similar to codecs in 'dart:convert'
0.9.0
- ChangeLog starts here.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add cryptopubspec.yaml
name: crypto
version: 2.0.1
author: Dart Team <misc@dartlang.org>
description: Library of cryptographic functions.
homepage: https://www.github.com/dart-lang/crypto
environment:
sdk: '>=1.16.0-dev.5.0 <2.0.0'
dependencies:
collection: '^1.0.0'
convert: '>=1.0.0 <3.0.0'
dev_dependencies:
test: '>=0.12.0 <0.13.0'
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.5.12 | 2013-05-29T18:31:59.210260Z | Download | 41c73b49c384abb39185029fcd0a4819c7cdbcb8d80347785853cc890cbc4385 |
| 0.5.13 | 2013-06-03T16:05:34.479620Z | Download | 2ade1cc1fde67e2021ee9f7df172a858461b64450a4f3d35e6e1753a5c545c8e |
| 0.5.14+1 | 2013-06-05T15:05:30.178090Z | Download | e7ad8dcb824635e1dcfc54a82551327c9f587f32ac16a04c9f6fffd3bcd0751a |
| 0.5.14+3 | 2013-06-06T16:37:38.678960Z | Download | 12b20305ae0a3071434b74d34dd2e776f4426bbadf38b497842a93064901f47d |
| 0.5.15 | 2013-06-07T23:05:19.556250Z | Download | 1679a1a46603effec18056c5cc5e3a5ea65f9c0ad8031d4d1189e001ba174b1f |
| 0.5.16 | 2013-06-10T16:37:11.388480Z | Download | 4f5949b2aa2c674862d67933662b79835945bbf6a18df7dd5bf34e506b76e819 |
| 0.5.17 | 2013-06-12T17:53:19.838580Z | Download | c85271a9842fd2cb8b764dcb325e0fddd773fd16e60eb406c1a43f52f1758978 |
| 0.5.20 | 2013-06-17T22:08:29.283380Z | Download | b85d36e32d7660d1d4c4fcf5487ef9e2d5793b2dcc44c1142bb1cde15cd33960 |
| 0.6.1 | 2013-06-27T19:33:24.733850Z | Download | 0265f23908a6c6e5f4392f872c78404f8e7b253c00ad9eb92adb0b8344fb9100 |
| 0.6.2 | 2013-06-28T20:56:15.574080Z | Download | fcc5365d30d9ad809af78ae703b65edce3419327c5baeef3e5fd5f1974d7aaa0 |
| 0.6.3+1 | 2013-07-09T00:24:17.336500Z | Download | c1b8709081ebd378a4e7954c67bec4c5c8d007bac4e8dc1caea253bb1fecb7ae |
| 0.6.5 | 2013-07-16T00:19:33.698810Z | Download | 44aec41a0b14dc206a23a0c69236f9eba0263190c8dd2f35cc8f13212f5d292f |
| 0.6.6 | 2013-07-17T19:41:40.844Z | Download | 7a98c82e174d48b7c93c7b14b21d3762cf42410e4c7268a01e36539f6b19fef3 |
| 0.6.8 | 2013-07-19T20:55:41.629240Z | Download | 3fe7e92deac5bb63ec12f070d8856a0272041089ca82301e72f530dc580b225d |
| 0.6.9 | 2013-07-22T15:14:03.977720Z | Download | f4eecb854497148d256f15cd5163df8411a2d6099236ac9a0837894f0c8dff42 |
| 0.6.9+2 | 2013-07-24T03:58:45.726700Z | Download | 240b68efed6da5882e7cfa54b03b2595c138d58d0ac6fc135f8c3940c8159b4c |
| 0.6.11 | 2013-07-25T05:09:51.238400Z | Download | 6c00f937d49cb36a63b9fffb9a6dadcde92e6d55a5688a47e910c3f86d2051a5 |
| 0.6.12 | 2013-07-26T20:06:05.510840Z | Download | f48457c0f23a4122537a291b81082446ecceebdc706f193bc6ddcb6a481df85d |
| 0.6.13 | 2013-07-30T21:56:08.362780Z | Download | 2d9e23c72182e74e50f137d877d6941d86f982884b3531a8b68743b72c199e2c |
| 0.6.14 | 2013-08-02T16:25:01.317970Z | Download | 45ee62abaadd1abd71bec85820c0d72451c6ce242cbbdba9fb130c3865fd968e |
| 0.6.15+2 | 2013-08-05T22:49:41.510710Z | Download | 6632f5626f4bae8bc310f8f9739d7d2587fdb4d639f9abfefb08c3bedb247601 |
| 0.6.15+3 | 2013-08-06T20:13:04.219400Z | Download | 971af827894b66e05a8685b18221e8a9daf3a58966c42c93e284ab65790fddb0 |
| 0.6.17 | 2013-08-10T17:35:30.470960Z | Download | c117d165c62743af197a267d1ce72d60badf45a3107a8479e692e666f5362850 |
| 0.6.17+2 | 2013-08-12T22:21:35.868130Z | Download | f0d34a44309b57a883a248f04b094110e06fb07e6768e1155be63bd33d5b8a5e |
| 0.6.19 | 2013-08-19T16:10:53.160310Z | Download | 83ae7e1a922b4bcfc57d86df6fbf99bfe286f29b41e20fa65d33b9316d3f6402 |
| 0.6.20+1 | 2013-08-22T18:19:16.039130Z | Download | d98c4ad9571e750d13fec0326ac1382d638f81bfb21ee9123bb95c180c221b79 |
| 0.6.21+3 | 2013-08-26T17:42:36.433440Z | Download | 27171682199aa28f2513483675f073b253d0bf86e0ed4c1b790cce14bac1a41b |
| 0.7.0 | 2013-08-28T19:29:06.009250Z | Download | 621169a6a45e98893d6cd6d7090a13aea37bb9237a2e882a208f38ff1fe20c45 |
| 0.7.1 | 2013-09-03T15:50:58.670960Z | Download | 028030193781c5e7c84db5afdab55eda48d9a48f8cee8d0d215a604b21b50016 |
| 0.7.2 | 2013-09-06T15:51:24.233710Z | Download | 6403395daa001c5ced436ea80e9521d81bc97ea1b9abf76a72df2c80ca0c239d |
| 0.7.2+1 | 2013-09-08T15:47:18.194Z | Download | 6f292e1fcc9c4fcace0ea4efc22196e811a4fbdaaa42236be8cbbab9108a4cf4 |
| 0.7.3+1 | 2013-09-16T15:43:53.519960Z | Download | cd4c6576d8c4e2c2b08dee0fd83fbd62214edc2392f4f4fb9bf9dbb96f8b58e2 |
| 0.7.4 | 2013-09-18T03:03:48.403020Z | Download | 9db354953ce010b9881fc3cb41b75ed7ccfed0981ba85d383717945f2b032cbe |
| 0.7.5 | 2013-09-21T00:40:44.481680Z | Download | 110987c6cc657f3ec0a94dcc93530c60a54e40a6623069bb2357be175ec24935 |
| 0.7.6 | 2013-09-27T14:57:26.952600Z | Download | 8851c0240bf0341ba649c9aa3ff487fd21712fe55a62ef96e06715d15a45cc19 |
| 0.7.6+4 | 2013-10-01T23:48:25.452450Z | Download | a266781392df2095eed233b44b265c80c419408fe3334ab5653cd0c10298fbfd |
| 0.8.0 | 2013-10-03T16:27:05.011660Z | Download | 32767a2df902147e89c54eb12fa53f32efd4a9700bd3559483e7fb66149bf9ff |
| 0.8.1 | 2013-10-04T21:54:18.019200Z | Download | bb28667187c0c9c3cce289def3ddd64b8d387f32997401669db1176d96459ff0 |
| 0.8.2 | 2013-10-14T21:41:00.765790Z | Download | ebabe3c298f23ebc50a553e244f3e86a2fdd43d3b386f9f6d14ad1e212fd2f0d |
| 0.8.3 | 2013-10-17T16:00:27.280010Z | Download | 70fb25932f7ffda5bc422d239e7cc7ebc3975dd32f6c95cdce9daa6c0d688fad |
| 0.8.4 | 2013-10-19T21:08:39.693280Z | Download | cf0ae97b94a49368571485f5d63300371fd139f053d2e27844261f1b4210f46e |
| 0.8.5 | 2013-10-21T15:50:20.036260Z | Download | 135ff02e46a54ab39d1d8f04a3174c7272c18d890f7a7adc4dd40e4e88710363 |
| 0.8.6 | 2013-10-24T08:18:30.250270Z | Download | 5263030af8abc47c5857b83a498e5e803986687ce99c7470e8a0e61f24589119 |
| 0.8.7 | 2013-10-28T14:33:04.878790Z | Download | 930b6d8cb4bc162126c14dfafb22d456bc7a799e32d398c27838d9b226164f8d |
| 0.8.8 | 2013-10-30T03:29:20.931520Z | Download | b964600982df98b4415f96ed9cd43a9b4ab1668b18aeb2ed01c4c6e3af5bb3a1 |
| 0.8.9 | 2013-10-31T15:15:43.268300Z | Download | e4a64898f46abedc8c8f59cc34dfdb9f1bdc518c4d367ee34c259eb9cdcf8493 |
| 0.8.10 | 2013-11-01T19:23:07.683150Z | Download | 09e32d4cb8c6ea3e591aa24448d6b52bef02ea00dc102d74acb7401acdf37a3e |
| 0.8.10+3 | 2013-11-04T16:48:56.643990Z | Download | 41c4540b23f91908b31208ad01a24401b20209312722322bb335c131d1634baa |
| 0.8.10+4 | 2013-11-05T16:05:06.338760Z | Download | b32a6b3f6981300f56826bb0c18384276ce960e7da8a5aa746a6939d110209f3 |
| 0.9.0 | 2013-11-06T19:31:30.980960Z | Download | 0d7aaa87e680ddd9e6fab4958a4ee343de57bd56c6c9314ff21fcdccde6a349a |
| 0.9.1 | 2015-09-16T16:08:49.244Z | Download | 1219ab630aca82b8746217323163da8840033e154f919a24fa8b79da1bf533f4 |
| 0.9.2 | 2016-03-23T00:01:43.851Z | Download | 6411c96c572dd4714b3a07f30ac452133a5a25388be188a8f6a3de14e1fe6b7e |
| 0.9.2+1 | 2016-03-23T20:23:45.483Z | Download | 42cfe5470a9557473d4a40e632dc47530e79aa5738fc104d0b16469d324dd080 |
| 1.0.0 | 2016-03-28T20:59:50.126Z | Download | bfb0f92f660e0940598deb1bc393061570a8d35fa1d1843b92cf1275a41c82a3 |
| 1.1.0 | 2016-04-14T19:36:03.285Z | Download | 2b1243ab7cf76eacb988f187355efd5ad1a62ff0d06353f4b41ddabfcf3d3aee |
| 1.1.1 | 2016-04-21T20:41:01.590Z | Download | 424a68f6f3038c7e8f77275634c9d2a565edce6a715c2d1574536c92b512b615 |
| 2.0.0 | 2016-06-03T22:40:57.112Z | Download | 41a1b41cbc8469e04a940722d46bc296efe9d604627ba650bf8814a1dc55d47c |
| 2.0.1 | 2016-06-03T22:57:17.904Z | Download | 252cbd678600b61ff0cd051e4d8fee35475cd7533ba0dc712eff4dbce0b2b609 |
| 2.0.2 | 2017-07-19T19:52:11.024276Z | Download | 7c0d94365c2173bc45119a4d97ffcb665a7a03fa7ecd14a187e2f6cb781bf2de |
| 2.0.2+1 | 2017-09-19T15:19:14.373193Z | Download | 6b6d0d1aa20878379b5b056648f0846243bc1db0cdbcec68ca4d133bd9a5f6df |
| 2.0.3 | 2018-05-03T15:48:49.313357Z | Download | 3582f388db6a45a54db6adc7acde029db059c9e629d4b308135e93dfd7a4437e |
| 2.0.5 | 2018-06-15T18:31:26.346145Z | Download | 6111fe0e24fdee6003daf6b8df839421e9c9597b42f3e2ddd9cf98ed0fd835fa |
| 2.0.6 | 2018-07-13T18:12:17.800756Z | Download | 65d1f5d5b787866aebd31b4d11ed50ea48d930238573ee49fd53c9c4abc75918 |
| 2.1.0 | 2019-08-05T22:51:01.559882Z | Download | 0cefba17e78837dc1caef981a73e62c2b015b71670d46825f70c9fae0c397332 |
| 2.1.1 | 2019-08-06T00:31:58.568930Z | Download | 071c23d2fb00deaf381ebab2d53477eca37d2c07b3e337036ce9664cc2af2493 |
| 2.1.1+1 | 2019-08-06T23:16:33.024738Z | Download | 1dfca28c4ec1b5fc1cd800f108181234aff02f916ac95edf48b760c3fcf8feac |
| 2.1.2 | 2019-08-20T11:25:34.996994Z | Download | 768cbcd1f07a396479ff137bfd510ca292e35d1a0eb2b8ca3c38ad9b15e57e2b |
| 2.1.3 | 2019-09-10T14:50:22.882523Z | Download | ebdb34c9171ea8e566dbed1800349c4135c33d2994de39d74206a8ad242f34a9 |
| 2.1.4 | 2019-12-06T15:20:49.957375Z | Download | 9573b41053730155edbc2b883717c467648de3f1fe74171d62ca7b9c899014ec |
| 2.1.5 | 2020-05-20T23:55:10.510799Z | Download | 3ce628f3c6a7144be6c524dbb20ca5af52fa59c850c587bf5e52cd70ece8e7e8 |
| 3.0.0-nullsafety.0 | 2020-12-30T19:43:17.917168Z | Download | 7b60fb16f9cb2bec754c056ec0f3b0d94baa6da5444dd40cc7dd934d74b91c7b |
| 3.0.0 | 2021-02-02T21:37:05.717574Z | Download | 8be10341257b613566fdc9fd073c46f7c032ed329b1c732bda17aca29f2366c8 |
| 3.0.1 | 2021-04-01T16:43:49.771726Z | Download | cf75650c66c0316274e21d7c43d3dea246273af5955bd94e8184837cd577575c |
| 3.0.2 | 2022-04-27T16:22:13.780856Z | Download | aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67 |
| 3.0.3 | 2023-05-04T12:34:29.110431Z | Download | ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab |
| 3.0.4 | 2024-08-13T17:40:58.512043Z | Download | 1dceb0cf05cb63a7852c11560060e53ec2f182079a16ced6f4395c5b0875baf8 |
| 3.0.5 | 2024-08-15T00:07:36.409924Z | Download | ec30d999af904f33454ba22ed9a86162b35e52b44ac4807d1d93c288041d7d27 |
| 3.0.6 | 2024-10-16T08:13:03.523555Z | Download | 1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855 |
| 3.0.7 | 2025-11-04T10:22:56.527540Z | Download | c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf |
| 3.0.8 | 2026-10-26T07:36:22.513425Z | Download | e3626ae6270383c9e3a549f34c9e4cd26c09ae6a9adaab2bf4737a00340efdc4 |
Dependencies
collection "^1.0.0"
convert "\u003e=1.0.0 \u003c3.0.0"