Hackfut Security File Manager
Current Path:
/usr/lib64/python2.6/site-packages/M2Crypto/PGP
usr
/
lib64
/
python2.6
/
site-packages
/
M2Crypto
/
PGP
/
📁
..
📄
PublicKey.py
(1.61 KB)
📄
PublicKey.pyc
(3.21 KB)
📄
PublicKey.pyo
(3.05 KB)
📄
PublicKeyRing.py
(2.12 KB)
📄
PublicKeyRing.pyc
(3.11 KB)
📄
PublicKeyRing.pyo
(3.11 KB)
📄
RSA.py
(849 B)
📄
RSA.pyc
(1.53 KB)
📄
RSA.pyo
(1.53 KB)
📄
__init__.py
(349 B)
📄
__init__.pyc
(668 B)
📄
__init__.pyo
(668 B)
📄
constants.py
(381 B)
📄
constants.pyc
(608 B)
📄
constants.pyo
(608 B)
📄
packet.py
(10.97 KB)
📄
packet.pyc
(14.91 KB)
📄
packet.pyo
(14.84 KB)
Editing: RSA.py
"""M2Crypto PGP2 RSA. Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.""" import sys from M2Crypto import m2, RSA _RSA = RSA del RSA class RSA(_RSA.RSA): pass class RSA_pub(_RSA.RSA_pub): pass def new_pub_key((e, n)): """ Factory function that instantiates an RSA_pub object from a (e, n) tuple. 'e' is the RSA public exponent; it is a string in OpenSSL's binary format, i.e., a number of bytes in big-endian. 'n' is the RSA composite of primes; it is a string in OpenSSL's binary format, i.e., a number of bytes in big-endian. """ import warnings warnings.warn('Deprecated. No maintainer for PGP. If you use this, please inform M2Crypto maintainer.', DeprecationWarning) rsa = m2.rsa_new() m2.rsa_set_e_bin(rsa, e) m2.rsa_set_n_bin(rsa, n) return RSA_pub(rsa, 1)
Upload File
Create Folder