private List <CredentialGroup> GetCredentials(byte[] key, byte[] iv) { ICrypt aesCrypt = new AesCrypt(key, iv); ICrypt byteShift = new ByteShifter(4190, "vmqup4amöovcb86mnoöbsaen"); ICredentialsStore <ICollection <CredentialGroup> > store = new CredentialFileStore("D6qA5QN31w.dat", new[] { aesCrypt, byteShift }); return(store.Load().ToList()); }
private void CreatePasswordManagerInstance(byte[] aesKey, byte[] aesIV) { ICrypt aesCrypt = new AesCrypt(aesKey, aesIV); ICrypt byteShift = new ByteShifter(4190, "vmqup4amöovcb86mnoöbsaen"); ICredentialsStore <ICollection <CredentialGroup> > store = new CredentialFileStore(_storeFile, new [] { aesCrypt, byteShift }); _manager = new PasswordSafe(store); ((PasswordSafe)_manager).OnCommandExecuted += MainWindow_OnCommandExecuted; }