mikofski / JGit4MATLAB

JGit wrapper for MATLAB
https://mikofski.github.io/JGit4MATLAB
BSD 2-Clause "Simplified" License
5 stars 3 forks source link

UserInfoSshSessionFactory should ask for passphrase once per session and save encrypted in .jsch-userinfo #15

Open mikofski opened 10 years ago

mikofski commented 10 years ago

currently UserInfoSshSessionFactory just looks in the .jsch-userinfo file for the passphrase, that's the only option

ideally UseerInfoSshSessionFactory could ask for a passphrase the first time per session then save it encrypted (see issue #14) using AES. If the AES key is a randon number stored in JGit as a constant, then it will be different every session, and so passed .jsch-userinfo files would be invalid and deleted, and user would be prompted to reenter their passphrase. If that doesn't work some other system, like once per day IE use the date as the AES key.