From 3d787f81d44e5af4c217651200d5e2a9e56a3ee6 Mon Sep 17 00:00:00 2001 From: hanya98 Date: Fri, 17 Oct 2025 22:31:13 +0530 Subject: [PATCH] Create saving passwords Using dictionary to store encrypted passwords as value as org password as key. --- saving passwords | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 saving passwords diff --git a/saving passwords b/saving passwords new file mode 100644 index 0000000..27096ab --- /dev/null +++ b/saving passwords @@ -0,0 +1,19 @@ + +dict={} +n=int(input('enter no of passwords to be entered')) +for i in range(n): + t='' + org=input('enter org password') + for i in org[::-1]: + t+=i+'#' + dict[org]=t +num=int(input('enter no of passwords to be changed')) +for i in range(num): + k='' + og=input('enter org password') + cg=input('enter new password') + dict.pop(og) + for i in cg[::-1]: + k+=i+'#' + dict[cg]=k +print(dict)