public static string RemoveStorageSpecific(string _fileDir, string _websiteURL) { string ret; try { string uniqueId = CandyStore.PBKDF2Service(_websiteURL, CandyStore.GetParameters().MinNumOfIterationsParm); uniqueId = CandyStore.ToHexString(uniqueId); ret = StorageHelper.RemoveStorageSpecific(_fileDir, uniqueId); } catch { return("Removal failed"); } return(ret); }
public static string ReadPass(string _websiteString, string _decryptionKey, string _fileDir, int _numOfIterations) { string ret = ""; string uniqueId = CandyStore.PBKDF2Service(_websiteString, _numOfIterations); uniqueId = CandyStore.ToHexString(uniqueId); try { PassObject PassObject = StorageHelper.ReadBlobToObject(uniqueId, _fileDir); ret = EncryptDecryptStore.Decrypt(PassObject.GetEncryptedPass(), _decryptionKey); } catch { ret = "Cannot read, does this website exist as pass?"; } return(ret); }