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

Explain the concept of ( MIS) Management information systems

Blog banner

Models of Information Security.

Blog banner

Soak knowledge and level up your intellectual potential!!!

Blog banner

MEMORY MANAGEMENT

Blog banner

How To Setup DVWA Using XAMPP on Windows

Blog banner

Modern Operating System

Blog banner

Why am I never satisfied with my Life?

Blog banner

Modern operating system

Blog banner

DBMS and various career options related to it.

Blog banner

Risk factors in service transistion

Blog banner

Metasploit

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

Raid

Blog banner

Indian Culture and Tradition

Blog banner

Disk Management

Blog banner

What do you mean by online marketing and why do you need to know about it

Blog banner

Why Does Hierarchy Still matter in Organizations?

Blog banner

5 Stages of Digital Marketing

Blog banner

6 Digital Marketing Trends You Must Watch Out For In 2022

Blog banner

Maharashtrian culture: Tradition, Art, Food

Blog banner

Microsoft powerpoint presentation

Blog banner

Deadlock in operating system

Blog banner

Simple STEM Activities for Toddlers That Spark Curiosity

Blog banner

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

Blog banner

Session Hijacking Techniques

Blog banner

SQL Injection

Blog banner

Instagram

Blog banner

APACHE KAFKA

Blog banner

Multicore CPUs

Blog banner

virtual memory

Blog banner

Short-Form Video Marketing: Why It's Dominating the Internet

Blog banner

Classification Algorithms (Decision trees, SVM, Logistic regreession)

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

What type of stock broker do I need?

Blog banner

Getting into anime My anime suggestions

Blog banner

Process State

Blog banner

Quality check in IT services

Blog banner

The Evolution of the Microprocessor ~ Aditya Pai

Blog banner

What is a geographic information system (GIS)?

Blog banner

GIS Topography

Blog banner

INTERNET SECURITY

Blog banner

The art of being alone

Blog banner