commit | 7a7b51741fb726f27f1d5b3d5f441dfdc5d02967 | [log] [tgz] |
---|---|---|
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | Wed Nov 01 05:37:51 2023 +0000 |
committer | GitHub <noreply@github.com> | Wed Nov 01 05:37:51 2023 +0000 |
tree | 5a47789199472bd827464c326ebeda39ffabe344 | |
parent | 36ead7c6f748448cde9149bc96292adb844c4601 [diff] |
Bump actions/checkout from 4.1.0 to 4.1.1 (#156) Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2>v4.1.1</h2> <h2>What's Changed</h2> <ul> <li>Update CODEOWNERS to Launch team by <a href="https://github.com/joshmgross"><code>@âjoshmgross</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1510">actions/checkout#1510</a></li> <li>Correct link to GitHub Docs by <a href="https://github.com/peterbe"><code>@âpeterbe</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1511">actions/checkout#1511</a></li> <li>Link to release page from what's new section by <a href="https://github.com/cory-miller"><code>@âcory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1514">actions/checkout#1514</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/joshmgross"><code>@âjoshmgross</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1510">actions/checkout#1510</a></li> <li><a href="https://github.com/peterbe"><code>@âpeterbe</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1511">actions/checkout#1511</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v4.1.0...v4.1.1">https://github.com/actions/checkout/compare/v4.1.0...v4.1.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/checkout/commit/b4ffde65f46336ab88eb53be808477a3936bae11"><code>b4ffde6</code></a> Link to release page from what's new section (<a href="https://redirect.github.com/actions/checkout/issues/1514">#1514</a>)</li> <li><a href="https://github.com/actions/checkout/commit/8530928916aaef40f59e6f221989ccb31f5759e7"><code>8530928</code></a> Correct link to GitHub Docs (<a href="https://redirect.github.com/actions/checkout/issues/1511">#1511</a>)</li> <li><a href="https://github.com/actions/checkout/commit/7cdaf2fbc075e6f3b9ca94cfd6cec5adc8a75622"><code>7cdaf2f</code></a> Update CODEOWNERS to Launch team (<a href="https://redirect.github.com/actions/checkout/issues/1510">#1510</a>)</li> <li>See full diff in <a href="https://github.com/actions/checkout/compare/8ade135a41bc03ea155e62e844d188df1ea18608...b4ffde65f46336ab88eb53be808477a3936bae11">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/checkout&package-manager=github_actions&previous-version=4.1.0&new-version=4.1.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
A set of cryptographic hashing functions for Dart.
The following hashing algorithms are supported:
To hash a list of bytes, invoke the convert
method on the sha1
, sha256
or md5
objects.
import 'package:crypto/crypto.dart'; import 'dart:convert'; // for the utf8.encode method void main() { var bytes = utf8.encode("foobar"); // data being hashed var digest = sha1.convert(bytes); print("Digest as bytes: ${digest.bytes}"); print("Digest as hex string: $digest"); }
If the input data is not available as a single list of bytes, use the chunked conversion approach.
Invoke the startChunkedConversion
method to create a sink for the input data. On the sink, invoke the add
method for each chunk of input data, and invoke the close
method when all the chunks have been added. The digest can then be retrieved from the Sink<Digest>
used to create the input data sink.
import 'dart:convert'; import 'package:convert/convert.dart'; import 'package:crypto/crypto.dart'; void main() { var firstChunk = utf8.encode("foo"); var secondChunk = utf8.encode("bar"); var output = AccumulatorSink<Digest>(); var input = sha1.startChunkedConversion(output); input.add(firstChunk); input.add(secondChunk); // call `add` for every chunk of input data input.close(); var digest = output.events.single; print("Digest as bytes: ${digest.bytes}"); print("Digest as hex string: $digest"); }
The above example uses the AccumulatorSink
class that comes with the convert package. It is capable of accumulating multiple events, but in this usage only a single Digest
is added to it when the data sink's close
method is invoked.
Create an instance of the Hmac
class with the hash function and secret key being used. The object can then be used like the other hash calculating objects.
import 'dart:convert'; import 'package:crypto/crypto.dart'; void main() { var key = utf8.encode('p@ssw0rd'); var bytes = utf8.encode("foobar"); var hmacSha256 = Hmac(sha256, key); // HMAC-SHA256 var digest = hmacSha256.convert(bytes); print("HMAC digest as bytes: ${digest.bytes}"); print("HMAC digest as hex string: $digest"); }
Support for this library is given as best effort.
This library has not been reviewed or vetted by security professionals.