wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Password Generator - Lisp

profile
Aniket Panchal
Jul 16, 2025
0 Likes
0 Discussions
1 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

Service Design Model

Blog banner

INTERNET SECURITY

Blog banner

10 Survival Tips that might save your life

Blog banner

How to setup a professional looking business account on Instagram?

Blog banner

Internet: The Vast Ocean Of Knowledge.

Blog banner

Modern Operating Systems

Blog banner

The Future of Cybersecurity: Trends, Challenges, and Strategies

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

From Loom to Luxury: How Patola Elevates Modern Wardrobes

Blog banner

Ethical Hacking

Blog banner

Message Passing in OS

Blog banner

5 Common Faults In Construction Tenders

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

Data Lakes: A Key to Modern Data Management

Blog banner

Data Visualization- Importance and tools (Tableau,Power BI, Matplotlib)

Blog banner

Multicore and multithreading 171

Blog banner

Why Time Management Is the Secret to College Success (and How to Master It)

Blog banner

Memory Management

Blog banner

IT Service Continuity Management

Blog banner

Secure Hypertext transfer protocol

Blog banner

EVOLUTION OF THE MIRCOPROCESSOR

Blog banner

To travel is to live

Blog banner

Wiretapping

Blog banner

Importance of internet

Blog banner

CyberSecurity Color Wheel

Blog banner

Why Moms Are Choosing Customised School Accessories Over Generic Products?

Blog banner

Cache Memory

Blog banner

Classification Algorithms (Decision trees, SVM, Logistic regreession)

Blog banner

A buffer overflow

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

History of Money

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

Deming’s Process

Blog banner

IT GOVERNANCE

Blog banner

Earth with no trees

Blog banner

Fitness regime by Deepesh

Blog banner

The application udemy

Blog banner

STARVATION

Blog banner

Blockchain technology: security risk and prevention

Blog banner

Big Data

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Tomato Butter Sauce with Bucatini

Blog banner