Skip to content

abhinavanandthakur/cryptography

Repository files navigation

cryptography

  1. Write a function to compute permutation of a given string. Apply your function to generate all the permutations of the english alphabet (i.e. "abcdefghijklmnopqrstuvwxyz").
  2. Write a function to compute a^b mod N, using the repeated multiplication modulo N method
  3. Write a function to compute a^b mod N, using the repeated squaring modulo N method
  4. Write a function to generate a random number, n, between 2^63 and 2^64, and check whether it is a Prime or not using Fermat's Theorem (i.e. 2^(n-1) mod n ==1?, 3^(n-1) mod n ==1?, 5^(n-1) mod n ==1?, 7^(n-1) mod n ==1?, 11^(n-1) mod n ==1?). You have to use the function in (3) for this purpose.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages