TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Encrypt messages using SSH public keys from GitHub.

7 点作者 jasoncodes大约 12 年前

1 comment

A1kmm大约 12 年前
Wouldn't it be better to feed the RSA public key into an existing message encryption system like gpg? There are a few things you could improve that way:<p>* No message integrity - it would be good to be able to sign and encrypt.<p>* Encrypting the same plaintext twice gives the same ciphertext (there is no randomness). This means that an attacker can confirm if a given ciphertext corresponds to a suspected plaintext.<p>* RSA is comparatively slow; it is usually better to encrypt a symmetric key with RSA and then encrypt the message with the symmetric key.
评论 #5496190 未加载