private string GetTokenFromFile() { using (var reader = new StreamReader(filename)) { var token = reader.ReadLine(); return(Cryptographer.Decrypt(token)); } }
private long GetUserIDFromFile() { using (var reader = new StreamReader(filename)) { reader.ReadLine(); var str = reader.ReadLine(); var id_str = Cryptographer.Decrypt(str); return(long.Parse(id_str)); } }