Answers for "python encryption standard library"

2

encryption using python

#Made by myself

import random

text = input ( "Enter text: " )

result = ""
private_key = ""

for i in text:

    rand = random.randint ( 1, 125 )
    en = rand + ord ( i )
    en = chr ( en )
    en = str ( en )

    private_key = private_key + str ( rand ) + " "

    result = result + en

print ( "nPublic key:", result )
print ( "Private key:", private_key )
Posted by: Guest on January-12-2021

Code answers related to "python encryption standard library"

Python Answers by Framework

Browse Popular Code Answers by Language