larsp

Members
  • Content Count

    7
  • Joined

  • Last visited

About larsp

  • Rank
    New User
  1. Why is it that the show QR code isn't working anymore? If I choose Share and selects QR Code, the QR code isn't shown. Windows 8.1 64 bit.
  2. Here is a piece of C# code that will make you a secure random string: using System;using System.Collections.Generic;using System.Linq;using System.Security.Cryptography;using System.Text;using System.Windows.Forms; namespace RandomString{ internal static class Program { private static string RandomString(int length, string allowedChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") { if (length < 0) throw new ArgumentOutOfRangeException("length", "length cannot be less than zero."); if (string.IsNullOrEmpty(allowedChars)) throw new ArgumentException("allowedChars may not be empty."); const int byteSize = 0x100; char[] allowedCharSet = new HashSet<char>(allowedChars).ToArray(); if (byteSize < allowedCharSet.Length) throw new ArgumentException(String.Format("allowedChars may contain no more than {0} characters.", byteSize)); // Guid.NewGuid and System.Random are not particularly random. By using a // cryptographically-secure random number generator, the caller is always // protected, regardless of use. using (var rng = new RNGCryptoServiceProvider()) { var result = new StringBuilder(); var buf = new byte[128]; while (result.Length < length) { rng.GetBytes(buf); for (int i = 0; i < buf.Length && result.Length < length; ++i) { // Divide the byte into allowedCharSet-sized groups. If the // random value falls into the last group and the last group is // too small to choose from the entire allowedCharSet, ignore // the value in order to avoid biasing the result. int outOfRangeStart = byteSize - (byteSize%allowedCharSet.Length); if (outOfRangeStart <= buf) continue; result.Append(allowedCharSet[buf%allowedCharSet.Length]); } } return result.ToString(); } } [sTAThread] private static void Main() { Clipboard.SetText(RandomString(2048)); } }} part of the code is from here: http://stackoverflow.com/questions/730268/unique-random-string-generation
  3. The CPU usage on Android is way to high. I have one read-only folder that is not synchronized. And I have camera upload turned on (and 3 photos to sync). Why does Bittorrent Sync create the whole folder structure when it is a read-only, non synchronized folder? Just create the folder when a file i downloaded. It seems like it is using a lot of CPU power to keep the folderstructure synchronized.
  4. It is on Win 8.1. Nice to hear you found the bug.
  5. I noticed I forgot to remove 8 and 9. With this key I can insert the first 118 chars, but all if I create a new folder: U4YX4SFF7V4DFO6XJNJ6SPAC4SZZGU6NUG4NTJ7HHMULQ3IOZROWS6ACI4UAQL7DPKSME5FI2OKGX53JJT22Y45NGVX2AMOHTTOQAKIX6ZTI6ZS6GSYQNYHLLQRYNBWKOSRFVWKMQMRQQJZFSFDKCZBWPOPP6J I'm not sure that i really matters how long a key you use. I seems like .syncid is a maximum of 32 bytes regardless of the length of the secret key.
  6. It is a random mix of base 64 chars. It works great if I create a new folder, but I can't edit an already created folder. An EXAMPLE of a long key could be: X23MVAEH7UWGL5FIZC4LQVTTU6GF8CGXV9THFIWM73OQ3TP4K2OJSUIW5KA4VZN68OKBKX2C89H5E29Y5ZCRGEGJ3D2YYM6SBUNRYJFYURKGI833W2TDAH9DQXZPOSDMPTQAWKHQSTPISIW8FG3TLLWP6C5C6QHAJE8VHL7C52MYVIBIR29X5OJHUXT7K4J5RDXYQ5GERJEWNZL54EUUWCSZ5LH4U7KUC56QIKGGOXAWKWRJKFMSLXXVWI2AYAVDXZLEPLEMMP7V I can paste the first 119 chars (first underscored part) but if the string is longer than that, nothing is inserted. The next group (not underscored) can also be pasted in, but this time it is only 117 characters.
  7. I have a folder with a custom 256 bytes key. That works fine but I wish to change the key. But it is nearly impossible to paste a new key into the "Full access secret" key field. Sometimes I can paste parts of the key into the field, other times it just refuses. I can't event paste the current key back into the field event though it works just fine. If I create a new folder there isn't any problems in pasting my secret key.