zoukankan      html  css  js  c++  java
  • Eclipse的Secure storage

    (大部分参考自Eclipse官方文档)

    在ubuntu下每次打开eclipse时会显示如下的提示框,要求输入Secure storage password,很麻烦

    Secure Storage是什么呢?

    1,什么是Secure Storage

    从Eclipse3.4增加的一种加密机制,可以通过密码方式保护配置文件。

    官方说明:

    secure storage以加密的形式保存数据。在某些操作系统上,它使用你的操作系统帐户信息提供单点登录体验。

    安全存储本身不包含加密的代码(encryption code)。它使用由Java虚拟机和/或操作系统提供的算法。

    2,工作原理

    Let's consider a concrete example of CVS integration. When you specify a password for a CVS connection, the application offers you an option to save your user name and password using secure storage.

    Schema of secure storage encrypting data

    Your CVS password is passed as data to secure storage. Secure storage uses a "master" password to encrypt it and store the encrypted CVS password in a file on disk.

    The master password is obtained from a password provider module. The master passwords are obtained in a "lazy" fashion, only when they are about to be used. Password providers can use different techniques:

    • on Windows, the master password is generated as a random value that is encrypted based on your Windows login information and stored in secure storage;
    • on Macintosh, the master password is initially created as a random value that is stored in the OS keyring;
    • the default password provider simply prompts you for a password;
    • other password providers might be supplied in your application.

    When data is saved with secure storage, the password provider is selected based on the priorities from the list of enabled password providers. Only that provider can be used in future to decrypt the data.

    3,如何去除

    方法一:删除相关目录

    $ rm -rf ~/.eclipse/org.eclipse.equinox.security/

    方法二:eclipse菜单操作

    Window -> Preferences 

    General -> Security -> Secure Storage -> "Contents"

    找到相关的密码,选择 “delete”。

  • 相关阅读:
    BZOJ4889: [TJOI2017]不勤劳的图书管理员
    BZOJ3932: [CQOI2015]任务查询系统
    BZOJ1926: [Sdoi2010]粟粟的书架
    POJ 3281 Dining(网络流-拆点)
    POJ 1273 Drainage Ditches(网络流-最大流)
    POJ 1325 Machine schedine (二分图-最小点覆盖数=最大匹配边数)
    HDU 1281 棋盘游戏
    HDU2255 奔小康赚小钱钱(二分图-最大带权匹配)
    HDU 2444 The Accomodation of Students (二分图存在的判定以及最大匹配数)
    POJ 3660 cow contest (Folyed 求传递闭包)
  • 原文地址:https://www.cnblogs.com/rakuhin/p/2976829.html
Copyright © 2011-2022 走看看