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

How To Invest in Indian Stock Market For Beginners. ~ Tutorial 2 (NSDL And CSDL) Continued...

Blog banner

Software

Blog banner

Disk scheduling

Blog banner

LinkedIn

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

Deming’s Process

Blog banner

Predicting Student Performance with Data Science

Blog banner

What is Packet Filtering?

Blog banner

Process Creation

Blog banner

How I use google in my daily life

Blog banner

City of Mumbai (Bombay):

Blog banner

Question

Blog banner

Buffering

Blog banner

HubSpot

Blog banner

The New Dr. Frankenstein who will perform first full head transplant

Blog banner

Regression Analysis

Blog banner

Is Pursuing a Dance Career in India Worth it?

Blog banner

The Role of Frontline Managers in Driving Workplace Performance and Customer Satisfaction

Blog banner

Modern Operating System

Blog banner

MySQL

Blog banner

Types of Hackers

Blog banner

Yahoo! mail

Blog banner

Developments in Modern Operating Systems

Blog banner

Deadlock

Blog banner

Multiprocessor

Blog banner

KEAP MANAGEMENT SYSTEM

Blog banner

Animal’s have my heart

Blog banner

Study of Backdoor and Trojan tools

Blog banner

Deadlock in operating system

Blog banner

CSI and Organizational Change

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

USES OF WHATSAPP

Blog banner

Delhi city

Blog banner

Operating System

Blog banner

Importance of Website

Blog banner

Modern Operating Systems.

Blog banner

Device driver

Blog banner

PERT Overview

Blog banner

Cache memory

Blog banner

I/O Buffering

Blog banner

Logical and physical address

Blog banner

Memory management

Blog banner