O'Reilly logo

Scratch Cookbook by Brandon Milonovich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a password generator

Creating passwords that are secure can be a bit of a challenge. Some of the best passwords can be generated by a computer. We'll create a program in this recipe that will generate passwords for us.

It is important to note that while it is beyond the scope of this book, the passwords we are creating here with this generator are not of the greatest strength. You can, however, use this as a baseline to create stronger passwords that would be much more challenging to crack.

Getting ready

To get started, open up a new Scratch file. Delete the default sprite and import a button from the Things folder.

How to do it...

Follow these steps to create our password generator:

  1. Increase the size of the button sprite you just imported ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required