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

Cache Memory

Blog banner

SNAPCHAT

Blog banner

Question

Blog banner

MySQL

Blog banner

Indian Culture and Tradition

Blog banner

POSITIVE ATTITUDE IN LIFE

Blog banner

Cherish the Craft — Essential Tips to Maintain Your Patola Collection

Blog banner

How India made the GIS its Own, and its Use in Infrastructural Developments

Blog banner

Affiliate Marketing V/S Influencer Marketing

Blog banner

File management in os

Blog banner

Information of meesho company

Blog banner

Gis in agriculture and farming

Blog banner

Service Transition Process in ITSM

Blog banner

Memory Management

Blog banner

Memory management

Blog banner

Data Mining

Blog banner

"Geographic Information Systems (GIS) and its Applications in Urban Planning"

Blog banner

Why Skipping Afternoon Meals Affects More Than Just Your Hunger?

Blog banner

Use case of K-means clustering

Blog banner

OS Assignment-3

Blog banner

WHAT IS SNAPCHAT AND HOW DOES IT WORK?

Blog banner

Everything You Need for a Perfect Stay in Arcadia, Florida, USA.

Blog banner

How College Events Build Real-world Skills You Can’t Learn From Textbooks

Blog banner

Explaining Buffer Overflow with Example

Blog banner

Jamming Attacks in Network Security: Disrupting Communication Signals

Blog banner

Craziness of dream 11 and how it impacts on our life

Blog banner

SAVE TREES

Blog banner

Vulnerability Assessment

Blog banner

Indian Food

Blog banner

What is OS Fingerprinting?

Blog banner

Predicting Student Performance with Data Science

Blog banner

Diwali

Blog banner

Earth with no trees

Blog banner

The Rise of Polo Tourism in the USA: How Travellers Are Blending Luxury Stays with Elite Sports

Blog banner

Corporate Discipline.

Blog banner

Cyber Bullying - Neeta Vonkamuti

Blog banner

S-Tool : Steganography

Blog banner

note taker app

Blog banner

TAILS OS

Blog banner

Drawing tips for a beginner

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

Never give up

Blog banner