gpt4 book ai didi

java - Eclipse密码恢复

转载 作者:行者123 更新时间:2023-11-30 09:30:51 24 4
gpt4 key购买 nike

我尝试寻找方法来获取我存储在 Eclipse 中用于 FTP 的几个密码。

我在 Ubuntu 12.04 上使用 Eclipse 4 (juno),并使用 RSE 插件存储所有 ftp。

找到这个教程 Eclipse password recovery (cvs, subversion, ..)但似乎已经过时了。而且我不是 Java 程序员,所以对我来说有点困难。

注意到在新的 Eclipse 中,所有密码都使用 Equinox 存储,所以我也发现了这个 Interface ISecurePreferences文档。

在上面的第一个链接中,我尝试安装 Eclipse-shell 并在那里执行下一个代码:

import org.eclipse.equinox.security.storage.SecurePreferencesFactory;
import org.eclipse.equinox.security.storage.ISecurePreferences;

ISecurePreferences root = SecurePreferencesFactory.getDefault();

root.nodeExists("org.eclipse.rse.core.security");
ISecurePreferences coresec = root.node("org.eclipse.rse.core.security");

coresec.nodeExists("org.eclipse.rse.systemtype.ftp");
ISecurePreferences typeftp = root.node("org.eclipse.rse.systemtype.ftp");

pass = typeftp.get("HERE_FTP_HOST/HERE_MY_FTP_USER_NAME", "test");

但我得到的不是密码而是“test”

我还尝试使用 typeftp.keys() 检查所有键,但在 Eclipse 控制台中我得到了 [Ljava.lang.String;@c5d03e6

如何在Eclipse中用密码恢复找出来?

最佳答案

教程博客文章基于上面引用的文章,但带有解释和可下载的源文件以恢复 SVN/FTP/SFTP 远程连接密码 is here .

关于java - Eclipse密码恢复,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13100747/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com