sympy/sympy — pull request #8048 by zsc347 (2014-09-16 10:07:07+00:00)
Title: fixed a bug in crypto.rsa_private_key

Hi , I just found a bug in crypto.rsa_private_key , we can test it with the code below

```python
>> import sympy.crypto as sc
>> p=23
>> q=29
>> e=5
>> message=7
>> puk = sc.rsa_public_key(p,q,e)
>> prk = sc.rsa_private_key(p,q,e)
>> assert message == sc.decipher_rsa(sc.encipher_rsa(message,puk),prk)
```

The reason of the bug is that d (in private key [n,d] ) shoud be the intervese of e , but pow(e, phi - 1, phi) is not the right way to calculate that.