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

Traditional Unix System

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

Predicting Student Performance with Data Science

Blog banner

"Audit" In Data Science

Blog banner

Water Resources are about to exhaust...

Blog banner

Direct Memory Access

Blog banner

Logical and physical address

Blog banner

A Brief Review on Cyber Forensics and its Analysis Tool

Blog banner

GIS Bharat Maps

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

Deadlock in Operating System

Blog banner

The Truth Behind Viral DIY Dental Hacks

Blog banner

Security Issues and Countermeasures

Blog banner

Big O Notation

Blog banner

Deadlock in operating system

Blog banner

Health and fitness

Blog banner

Operating system

Blog banner

Knowledge Management in Continual Service improvement (CSI)

Blog banner

BUFFER OVERFLOW_142

Blog banner

Data Lake

Blog banner

Social media

Blog banner

objectives and functions of operating system

Blog banner

Game Theory in Blockchain

Blog banner

Social engineering in cyber security

Blog banner

Deadlock

Blog banner

Mumbai famous street food

Blog banner

Top 3 Places To Stay In Vienna

Blog banner

Instagram Features in 2023 That Will Leave You Stunned!

Blog banner

Threads

Blog banner

Anomaly Detection in Behavioral Data Using Machine Learning

Blog banner

Question

Blog banner

TOGETHER WE CAN CONQUER #team

Blog banner

NIKE

Blog banner

THE LEGAL ISSUES OF COMPUTER FORENSICS IN INDIA

Blog banner

Top 10 Logos and their meanings

Blog banner

10 Alien Encounters and Abduction Stories

Blog banner

TOP 5 GAMING GADGETS (2024)

Blog banner

Developments in Modern Operating Systems

Blog banner

MOVEMBER

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Defining youtubr

Blog banner

Web browser forensics:Tools,Evidence collection and analysis

Blog banner