james77777778 / SimpleRSA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SimpleRSA

Usage

Encryption

Use Public Key (n, e) and Message (m) to compute Cipher-text (c).

Input: One test case has only one line, which contains two integers (n, e) and one string (m).

Output: One test case only needs one line which is a string of cipher-text (separated by comma).

Decryption

Use Public Key (n, e) and Cipher-text (c) to break RSA cryptography and compute Message (m).

Input: One test case has only one line, which contains two integers (n, e) and one string (c, separated by comma).

Output One test case only needs one line which is a string of message.

Testdata

in encryption_data and decryption_data

About


Languages

Language:Python 100.0%