Created
January 2, 2018 14:51
-
-
Save CreateRemoteThread/2aa6d1e4b4062669183dd0a4dfb7e264 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Hash.h> | |
| void setup() { | |
| Serial.begin(9600); | |
| Serial.println("Welcome to the glitchtastic adventure!"); | |
| } | |
| int g1 = 0; | |
| String data = "A"; | |
| void loop() { | |
| String d = sha1(data); | |
| int i = 50; | |
| for(i = 0;i < 2500;i++) | |
| { | |
| d = sha1(d); | |
| } | |
| g1 = 1 - g1; | |
| Serial.printf("%d : SHA1 ROUND 1 : ",g1); | |
| Serial.println(d); | |
| for(i = 0;i < 2500;i++) | |
| { | |
| d = sha1(d); | |
| } | |
| Serial.printf("%d : SHA1 ROUND 2 : ",g1); | |
| Serial.println(d); | |
| for(i = 0;i < 2500;i++) | |
| { | |
| d = sha1(d); | |
| } | |
| Serial.printf("%d : SHA1 ROUND 3 : ",g1); | |
| Serial.println(d); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment