【发布时间】:2021-12-27 06:01:38
【问题描述】:
我想通过 modPow 加密 String “this is a simple string”,但是我在 BigInt API 中没有找到方法,如何在 Dart 中将 String 转换为 BigInt?
String original = "this is a simple string";
BigInt modulusInt = BigInt.parse(n, radix: 16);
BigInt exponentInt = BigInt.parse(e, radix: 16);
现在当原始可以转换为 BigInt 时,我可以使用 modPow
【问题讨论】: