CodeGym /Courses /Java Collections /Tasks | Level 2 | Lesson 6

Tasks | Level 2 | Lesson 6

Java Collections
Level 2 , Lesson 6
Available

"Ha-ha, Amigo. Check out what I came up with for you:"

28
Task
Java Collections, level 2, lesson 6
Locked
Password generator
Implement the getPassword() method, which must return a ByteArrayOutputStream with the bytes comprising the password. Password requirements: 1) 8 characters. 2) Only numbers and uppercase and lowercase Latin letters. 3) At least one numeral, one lowercase letter, and one uppercase letter.
14
Task
Java Collections, level 2, lesson 6
Locked
Data integrity
Imagine this situation: you're downloading a zip file from the Internet and in the middle of the download you lose your connection for a few seconds. You need to be sure that the downloaded zip file is valid. To do this, check its MD5 hash. Read about MD5 on Wikipedia. Read about MessageDigest.
Comments (6)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Skynet Level 40, USA
8 August 2021
Password generator task advice. If you use Random random, do not initialize it with SecureRandom.getInstanceStrong(). Does not pass validation with that. Only via " = new Random()".
ayhem bouabid Level 25, Tunis, Tunisia
9 July 2021
if someone has trouble figuring out what to do in the Data Integrity task, then this article may be helpful. https://www.tutorialspoint.com/java_cryptography/java_cryptography_message_digest.htm Thank me later...
Andrei Level 41
22 June 2021
Password generator was much fun! I have a challenge for you, in the help section of this exercise. Good luck! 🔝😁
Jurij Thmsn Level 29, Flensburg, Germany
25 May 2021
why is something simple like StringWriter explained but something complicated like MessageDigest isn't?
MaGaby2280 Level 41, Guatemala City, Guatemala
24 May 2021
This link has good information for understanding MessageDisgest http://tutorials.jenkov.com/java-cryptography/messagedigest.html#:~:text=The%20Java%20MessageDigest%20class%20represents,can%20help%20alleviate%20that%20problem.
Wei Cui Level 39, Newark, United States
20 March 2020
https://stackoverflow.com/questions/41200615/how-to-check-two-md5 hint for task2