From 0da54d88a91b25f015652099f9a57364d15d0509 Mon Sep 17 00:00:00 2001 From: yoursunny Date: Sat, 25 Aug 2018 23:24:23 -0400 Subject: [PATCH] Hash: make actual SHA1 result and comment consistent (#5057) fixes #3437 --- libraries/Hash/examples/sha1/sha1.ino | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libraries/Hash/examples/sha1/sha1.ino b/libraries/Hash/examples/sha1/sha1.ino index d28085fd12..e9260ed9c5 100644 --- a/libraries/Hash/examples/sha1/sha1.ino +++ b/libraries/Hash/examples/sha1/sha1.ino @@ -5,13 +5,13 @@ #include void setup() { - Serial.begin(921600); + Serial.begin(115200); } void loop() { // usage as String - // SHA1:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 + // SHA1:a9993e364706816aba3e25717850c26c9cd0d89d Serial.print("SHA1:"); Serial.println(sha1("abc")); @@ -19,7 +19,7 @@ void loop() { // usage as ptr // SHA1:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 uint8_t hash[20]; - sha1("abc", &hash[0]); + sha1("test", &hash[0]); Serial.print("SHA1:"); for (uint16_t i = 0; i < 20; i++) { @@ -29,4 +29,3 @@ void loop() { delay(1000); } -