算法来自《密码学原理与实践》page129 其余两个待补充 #!/usr/dev/python #-*- coding:utf-8 -*- ''' Extended Euclidean algorithm(a,b) code by ShaNgZ algorithm from <cryptography theory and pratice