问题标签 [shared-secret]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
52 浏览

python-3.x - 试图将 int 中的 Shamir 算法输出转换为字符串

我试图让 Shamir 算法的这个实现接受字符串而不仅仅是数字。我可以轻松地将字符串转换为数字,ShamirEncoder.int_from_string()但我不知道如何将字节转换回字符串,因为输出是通过该int_from_string()方法的数字。

ShamirEncoder.string_from_int()是我在另一个实现中发现的,但它不适用于这个实现。

0 投票
0 回答
34 浏览

in-app-purchase - 生成应用程序特定共享密钥的未知错误

我正在为 IAP 设置远程收据验证,我需要生成一个特定于应用程序的共享密钥。我的帐户具有管理员权限,但是,当我单击生成密钥时,我收到错误There was a problem retrieving the data for this page. Please try again.

这个错误非常没用,并没有告诉我如何解决这个问题。我已经联系了 Apple Developer 支持,但没有得到回复。如果有人有类似的问题,任何帮助都会很棒!

0 投票
0 回答
262 浏览

python-3.x - ed25519共享密协议的python实现

让我们考虑以下示例。使用 Python 库 tinyec 我可以编写以下代码:

通过这种方式,Alice 和 Bob 能够通过 Internet 导出共享秘密。现在,我需要知道是否可以对 ed25519 曲线做同样的事情,因为我找不到任何类型的库。

因此,我有兴趣找到一种安全地进行此类操作的方法。我该怎么办?此特定操作的最佳实践是什么?

谢谢