Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Eclipse密码恢复_Java_Eclipse_Equinox_Password Recovery_Eclipse Rse - Fatal编程技术网

Java Eclipse密码恢复

Java Eclipse密码恢复,java,eclipse,equinox,password-recovery,eclipse-rse,Java,Eclipse,Equinox,Password Recovery,Eclipse Rse,我试图找到一种方法来获取我存储在Eclipse中用于FTP的两个密码 我在Ubuntu12.04上使用Eclipse4(juno),所有ftp都使用RSE插件存储 找到本教程,但似乎已过时。我不是Java程序员,所以这对我来说有点困难 注意到在新的Eclipse中,所有密码都是使用Equinox存储的,所以我也找到了这个文档 与上面的第一个链接一样,我尝试安装Eclipse shell并在那里执行下一个代码: import org.eclipse.equinox.security.storage

我试图找到一种方法来获取我存储在Eclipse中用于FTP的两个密码

我在Ubuntu12.04上使用Eclipse4(juno),所有ftp都使用RSE插件存储

找到本教程,但似乎已过时。我不是Java程序员,所以这对我来说有点困难

注意到在新的Eclipse中,所有密码都是使用Equinox存储的,所以我也找到了这个文档

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

import org.eclipse.equinox.security.storage.SecurePreferencesFactory;
导入org.eclipse.equinox.security.storage.ISecurePreferences;
ISecurePreferences root=SecurePreferencesFactory.getDefault();
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\u FTP\u HOST/HERE\u MY\u FTP\u USER\u NAME”,“test”);
但我得到的不是密码而是“测试”

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


如何在Eclipse中使用密码恢复来发现问题?

好的,我发现……我的代码有错误

获取存储在Eclipse RSE中的FTP密码的正确代码为:

import org.eclipse.equinox.security.storage.SecurePreferencesFactory;
导入org.eclipse.equinox.security.storage.ISecurePreferences;
ISecurePreferences root=SecurePreferencesFactory.getDefault();
ISecurePreferences coresec=root.node(“org.eclipse.rse.core.security”);
ISecurePreferences typeftp=coresec.node(“org.eclipse.rse.systemtype.ftp”);
pass=typeftp.get(“HERE\u FTP\u HOST//HERE\u MY\u FTP\u USER\u NAME”,“test”);
结果,我在Eclipse控制台中获得了解密后的密码


但是,如果有人向我解释如何使用一些东西来获取所有密码以进行更简单的导出,而不是仅仅手动复制/粘贴每个值,这也将是一件好事。这篇教程博客文章基于上面提到的内容,但附有解释,并可下载源文件以恢复SVN/FTP/SFTP远程连接密码。

在开普勒和Luna密码似乎在~/.eclipse/org.eclipse.equinox.security/secure_存储中。一个基于hello world插件的简单插件,用于打印安全存储的内容,例如

equinox将密码存储在
~/.eclipse_keyring
中。是的,但所有密码都加密请参见,
SecurePreferences.put()
很抱歉,我不太明白其中的诀窍;)谢谢!它看起来更有用…制作导出/导入插件有多困难?