Naïve RSA decryption in Python
  
 
     
     
             
                 
 
 
         
         1 
         
 
         
             
         
 
 
 
 
             
 
             
 
     $begingroup$ 
     
 
 I am making a code with basic RSA encryption/decryption.  My professor wants me to speed up this function but it is already so simple and I am lost.  Any ideas?   def decrypt(kenc,d,n):                 kdec=(kenc**d)%n      return kdec       
 
         
             
                 python performance homework cryptography 
             
         
 
     
         
             
  share | improve this question  
             
 
                 
 
     
         edited 2 hours ago 
     
     
         
     
     
         200_success 
         
             130k 17 154 419 
         
     
                 
             
 
     
         asked 7 hours ago 
     
     
         
     
     
         Chad T Chad T 
         
             21 1 
         
     
 
 
             
         
     
     ...