We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// rsa no padding encrypt func LowerSafeEncrypt(pub *rsa.PublicKey, msg []byte) []byte { m := new(big.Int).SetBytes(msg) e := big.NewInt(int64(pub.E)) return new(big.Int).Exp(m, e, pub.N).Bytes() } // rsa no padding decrypt func LowerSafeDecrypt(priv *rsa.PrivateKey, msg []byte) []byte { c := new(big.Int).SetBytes(msg) return new(big.Int).Exp(c, priv.D, priv.N).Bytes() }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature Request
The text was updated successfully, but these errors were encountered: