MCPcopy Index your code
hub / github.com/subbarayudu-j/TheAlgorithms-Python / readKeyFile

Function readKeyFile

ciphers/rsa_cipher.py:82–86  ·  view source on GitHub ↗
(keyFilename)

Source from the content-addressed store, hash-verified

80
81
82def readKeyFile(keyFilename):
83 with open(keyFilename) as fo:
84 content = fo.read()
85 keySize, n, EorD = content.split(',')
86 return (int(keySize), int(n), int(EorD))
87
88
89def encryptAndWriteToFile(messageFilename, keyFilename, message, blockSize=DEFAULT_BLOCK_SIZE):

Callers 2

encryptAndWriteToFileFunction · 0.85
readFromFileAndDecryptFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected