10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18f643c commit 0da54d8Copy full SHA for 0da54d8
libraries/Hash/examples/sha1/sha1.ino
@@ -5,21 +5,21 @@
5
#include <Hash.h>
6
7
void setup() {
8
- Serial.begin(921600);
+ Serial.begin(115200);
9
}
10
11
void loop() {
12
13
// usage as String
14
- // SHA1:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
+ // SHA1:a9993e364706816aba3e25717850c26c9cd0d89d
15
16
Serial.print("SHA1:");
17
Serial.println(sha1("abc"));
18
19
// usage as ptr
20
// SHA1:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
21
uint8_t hash[20];
22
- sha1("abc", &hash[0]);
+ sha1("test", &hash[0]);
23
24
25
for (uint16_t i = 0; i < 20; i++) {
@@ -29,4 +29,3 @@ void loop() {
29
30
delay(1000);
31
32
-
0 commit comments