java - 需要算法来用密码保护字符串吗?

标签 java passwords password-protection

我正在寻找一种简单快速的算法来使用密码加密/解密字符串(长度约为 128 字节)。

有什么好的算法吗?

添加:自定义算法绝对没问题。占用的内存更少 - 更好(对于我的情况)。没有额外的类(class) - 完美。

最佳答案

AES Algorithm : Implementation

AES is a federal standard for private-key or symmetric cryptography. It supports combinations of key and block sizes of 128, 192, and 256.

<小时/>

怎么样IDEA - International Data Encryption Algorithm

IDEA is the name of the patented and universally applicable block encryption algorithm, which permits the effective protection of transmitted and stored data against unauthorized access by third parties.

参见实现:How to implement IDEA?

关于java - 需要算法来用密码保护字符串吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6371246/

相关文章:

java - 如何在 JFrame 中获取事件监听器外部的变量?

php - PHP 中的密码哈希 : Am I Doing This Right?

c# - 如何加密密码并将其添加到我的sql数据库?

java - 数据库中存储密码的加密方法

java - 返回文本文件中包含字符串的行

java - 无法以编程方式安装 apk 文件

java - 使用外部 JS 文件更改 Servlet 的 HTML 输出

mysql - mysql 8.0 版本中的 hash() 函数

java - Java中的密码哈希方法

java - Apache POI 锁定单元格但允许调整列大小