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

Modern OS

Blog banner

Shoulders

Blog banner

Multicore CPUs

Blog banner

Linux VServer Architecture

Blog banner

PERSONALITY DEVELOPMENT

Blog banner

Advanced Persistent Threats (APTs)

Blog banner

How Reading Books Shape a Child’s Imagination and Thinking?

Blog banner

Security in Operating Systems

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

A Review on Data Acquisition in Cyber Forensics

Blog banner

To-Do List In LISP

Blog banner

Understanding Input Based Keylogger Activation Systems: Risks and Mitigation

Blog banner

File management

Blog banner

indian premier league

Blog banner

Bharat Maps

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

Wedding photographer

Blog banner

Virtual Memory

Blog banner

MailChimp

Blog banner

Docker Framework

Blog banner

Principles of Concurrency

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

Principles of Service Operation

Blog banner

AutoML: The Future of Automated Data Science

Blog banner

Cyber Bullying - Neeta Vonkamuti

Blog banner

Disk Scheduling

Blog banner

IT Service as as Value Creation

Blog banner

Open Source Project By Google

Blog banner

What are the different types of E-mail crime and process of email forensic?

Blog banner

CyberSecurity Color Wheel

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

E-mail security

Blog banner

A True Friendship

Blog banner

Security issues in Sensor Networks and gathering admissible evidence in Network Forensics

Blog banner

Exploring Human Factors in Cyber Forensics Investigations.

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Introduction my self

Blog banner

Clarizen

Blog banner

Raid

Blog banner

Tomato Butter Sauce with Bucatini

Blog banner

Cybersecurity Standards for Automotive

Blog banner

Latest Email Marketing Techniques

Blog banner