wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Password Generator - Lisp

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

Guidelines for a Low sodium Diet.

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

A Weekend of Wildlife, Rivers, and Relaxation in Southwest Florida

Blog banner

OLA

Blog banner

THE ROLE OF CYBER FORENSICS IN CRIMINOLOGY

Blog banner

PPT methodology

Blog banner

IP ADDRESS

Blog banner

John Titor: The Time Traveler

Blog banner

Harsh Rathod

Blog banner

Car Window Tinting in India: What Car Owners Should Know Before Installation

Blog banner

URL vs Domain

Blog banner

Teamwork

Blog banner

Cache memory

Blog banner

Threat management

Blog banner

Mumbai Metro 3

Blog banner

Preparing Students for Higher Education: How International Schools Shape Future Success

Blog banner

Data Mining

Blog banner

Cloud Technology and its Implications for Entrepreneurship

Blog banner

'Positivity in life'

Blog banner

Sleep Disorder: The Silent Link Between Sleep and Mental Health

Blog banner

Memory managment

Blog banner

Mental Health in an Ageing Population: Supporting the Mind Through Life’s Transition

Blog banner

ONLINE NEWSROOMS

Blog banner

Uniprocessor Scheduling

Blog banner

1 Dentist in Maroubra, Sydney and her 10 obsessions

Blog banner

Use It or Lose It: Why November Is the Best Time to Claim Your Dental Extras and Medicare CDBS Before Year-End

Blog banner

Why Summer Break Is Important for Emotional and Cognitive Growth?

Blog banner

Android Flashlight Application

Blog banner

Cyber Forensics in a Ransomware Attack Recovery

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Gis in agriculture and farming

Blog banner

Broken Authentication Attacks

Blog banner

My First Dream Bike

Blog banner

What is M-commerce and how it's work

Blog banner

21ST CENTURY PATRIARCHY

Blog banner

Mesh Topology

Blog banner

Know your Processors!

Blog banner

Mumbai Metro 3

Blog banner

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner

Deadlocks

Blog banner

How To Setup DVWA Using XAMPP on Windows

Blog banner

Evolution of Operating Sytems

Blog banner