Fast modular exponentiation function, for numbers and bigints.
github.com/fabiospampinato/fast-mod-exp
fabiospampinato/fast-mod-exp