├── RANDOM_PASSWORD_GENERATOR.ipynb ├── README.md ├── Random Password Generator.pdf └── random_password_generator (2).py /RANDOM_PASSWORD_GENERATOR.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "nbformat": 4, 3 | "nbformat_minor": 0, 4 | "metadata": { 5 | "colab": { 6 | "name": "RANDOM PASSWORD GENERATOR", 7 | "provenance": [] 8 | }, 9 | "kernelspec": { 10 | "name": "python3", 11 | "display_name": "Python 3" 12 | }, 13 | "language_info": { 14 | "name": "python" 15 | } 16 | }, 17 | "cells": [ 18 | { 19 | "cell_type": "code", 20 | "execution_count": 1, 21 | "metadata": { 22 | "id": "gKt7QMAD6LMq" 23 | }, 24 | "outputs": [], 25 | "source": [ 26 | "import random\n", 27 | "import string" 28 | ] 29 | }, 30 | { 31 | "cell_type": "code", 32 | "source": [ 33 | "print('hello, Welcome to Password generator!')" 34 | ], 35 | "metadata": { 36 | "colab": { 37 | "base_uri": "https://localhost:8080/", 38 | "height": 0 39 | }, 40 | "id": "7Qty9vsI6Z5W", 41 | "outputId": "e870f81f-1503-4204-d378-649a357e61f8" 42 | }, 43 | "execution_count": 2, 44 | "outputs": [ 45 | { 46 | "output_type": "stream", 47 | "name": "stdout", 48 | "text": [ 49 | "hello, Welcome to Password generator!\n" 50 | ] 51 | } 52 | ] 53 | }, 54 | { 55 | "cell_type": "code", 56 | "source": [ 57 | "length = int(input('Enter the length of password: '))" 58 | ], 59 | "metadata": { 60 | "colab": { 61 | "base_uri": "https://localhost:8080/", 62 | "height": 0 63 | }, 64 | "id": "lNpt-ksP6dMz", 65 | "outputId": "2f3afc7c-3eaf-480b-d928-0c7947baba49" 66 | }, 67 | "execution_count": 3, 68 | "outputs": [ 69 | { 70 | "name": "stdout", 71 | "output_type": "stream", 72 | "text": [ 73 | "\n", 74 | "Enter the length of password: 8\n" 75 | ] 76 | } 77 | ] 78 | }, 79 | { 80 | "cell_type": "code", 81 | "source": [ 82 | "lower = string.ascii_lowercase\n", 83 | "upper = string.ascii_uppercase\n", 84 | "num = string.digits\n", 85 | "symbols = string.punctuation" 86 | ], 87 | "metadata": { 88 | "id": "Cxv550on6jN7" 89 | }, 90 | "execution_count": 4, 91 | "outputs": [] 92 | }, 93 | { 94 | "cell_type": "code", 95 | "source": [ 96 | "all = lower + upper + num + symbols" 97 | ], 98 | "metadata": { 99 | "id": "YH30cW_96k46" 100 | }, 101 | "execution_count": 5, 102 | "outputs": [] 103 | }, 104 | { 105 | "cell_type": "code", 106 | "source": [ 107 | "temp = random.sample(all,length)\n", 108 | "password = \"\".join(temp)" 109 | ], 110 | "metadata": { 111 | "id": "foG8a7xw6qsb" 112 | }, 113 | "execution_count": 6, 114 | "outputs": [] 115 | }, 116 | { 117 | "cell_type": "code", 118 | "source": [ 119 | "all = string.ascii_letters + string.digits + string.punctuation\n", 120 | "password = \"\".join(random.sample(all,length))" 121 | ], 122 | "metadata": { 123 | "id": "uNLk1Hxs6tii" 124 | }, 125 | "execution_count": 12, 126 | "outputs": [] 127 | }, 128 | { 129 | "cell_type": "code", 130 | "source": [ 131 | "print(password)" 132 | ], 133 | "metadata": { 134 | "colab": { 135 | "base_uri": "https://localhost:8080/", 136 | "height": 0 137 | }, 138 | "id": "cQRz-V-37Mub", 139 | "outputId": "d9a9ce84-9804-4001-be28-8de3113cbe8b" 140 | }, 141 | "execution_count": 13, 142 | "outputs": [ 143 | { 144 | "output_type": "stream", 145 | "name": "stdout", 146 | "text": [ 147 | "@,\\tS_Oj\n" 148 | ] 149 | } 150 | ] 151 | } 152 | ] 153 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Random-password-Generator 2 | Having a weak password is not good for a system that demands high confidentiality and security of user credentials. 3 | It turns out that people find it difficult to make up a strong password that is strong enough to prevent unauthorized users from memorizing it. 4 | This project uses a mixture of numbers, alphabets, and other symbols found on the computer keyboard to form password which is unpredictable 5 | and cannot easily be memorized. 6 | -------------------------------------------------------------------------------- /Random Password Generator.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kishankumar1328/Random-password-Generator/be07287fa7a53a9ec49af083b340b30dee518d5b/Random Password Generator.pdf -------------------------------------------------------------------------------- /random_password_generator (2).py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """RANDOM PASSWORD GENERATOR 3 | 4 | Automatically generated by Colaboratory. 5 | 6 | Original file is located at 7 | https://colab.research.google.com/drive/1houoxbI6ZTNdTMADybpdZ88ALbyy2crl 8 | """ 9 | 10 | import random 11 | import string 12 | 13 | print('hello, Welcome to Password generator!') 14 | 15 | length = int(input('Enter the length of password: ')) 16 | 17 | lower = string.ascii_lowercase 18 | upper = string.ascii_uppercase 19 | num = string.digits 20 | symbols = string.punctuation 21 | 22 | all = lower + upper + num + symbols 23 | 24 | temp = random.sample(all,length) 25 | password = "".join(temp) 26 | 27 | all = string.ascii_letters + string.digits + string.punctuation 28 | password = "".join(random.sample(all,length)) 29 | 30 | print(password) --------------------------------------------------------------------------------