wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Password Generator - Lisp

profile
Aniket Panchal
Jul 16, 2025
0 Likes
0 Discussions
0 Reads

Program (Raw):

(defparameter *chars* "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*")


(defun random-char ()

(char *chars* (random (length *chars*))))


(defun generate-password (length)

(coerce (loop repeat length collect (random-char)) 'string))


(defun test-generator ()

"Test the password generator"

(format t "Password (8 chars): ~a~%" (generate-password 8))

(format t "Password (12 chars): ~a~%" (generate-password 12))

(format t "Password (16 chars): ~a~%" (generate-password 16)))


(setf *random-state* (make-random-state t))


(test-generator)


Program (Beautified):


Output:


Comments ()


Sign in

Read Next

Spyware

Blog banner

Cybersecurity Standards for Automotive

Blog banner

Save Environment

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

Education?

Blog banner

OS Assignment 1

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Service Design Principles

Blog banner

Scheduling

Blog banner

Virtual Memory

Blog banner

Os Virtual Memory

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

Networking 101: How to Build Meaningful Connections in College

Blog banner

Multiprocessor and Multicore Organization

Blog banner

5 Things I As A Dentist Would Never Do (And What You Can Learn From It)

Blog banner

Some web vulnerabilities

Blog banner

Unlocking Success: Mastering Google Ads Strategies

Blog banner

WINDOWS I/ O

Blog banner

Social Media Sentiment Analysis

Blog banner

Rain

Blog banner

Security and E-mail

Blog banner

What is thread and multithreading ?

Blog banner

Recipe of Paneer Butter Masala

Blog banner

The Power of Forensic Watermarking in the Fight Against Content Piracy

Blog banner

I Personally

Blog banner

Deadlock and Starvation

Blog banner

Computer Security

Blog banner

SAVE TREES

Blog banner

Stop Racism

Blog banner

Types of Viruses

Blog banner

RAID

Blog banner

Caching windows

Blog banner

The Secure Software Development Life Cycle (SDLC)

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

RAID_142

Blog banner

What makes Nugget RC Racing Florida’s Most Exciting Racing Events?

Blog banner

MAILFENCE

Blog banner

IO Buffers

Blog banner

Benefits of yoga and meditation

Blog banner

A Tourist’s Guide To Florida’s Rodeo Culture: What To Expect At The Arcadia Championship Rodeo

Blog banner

Dudhasagar waterfall ?

Blog banner

Patola Outfits for the Modern Wardrobe: Reviving Indian Handloom in Style

Blog banner