@Test public void chainGenerateUUIDFromSeed() { List<String> ss = CryptoUtils.chainGenerateUUIDFromSeed( UUID.randomUUID().toString(),10); for(String s : ss) { System.out.println(s); } }
public static List<String> chainGenerateUUIDFromSeed(String s, int numSeedsToGenerate) { byte[] seed = ByteUtils.string2byteArray(s); ArrayList<String> uuids = new ArrayList<>(); try { for (int i = 0; i < numSeedsToGenerate; i++) { String[] record = generateSeedChainHelper(seed); seed = ByteUtils.string2byteArray(record[0]); uuids.add(record[1]); } } catch(Exception e) { Log.e("exception",e.getMessage()); } return uuids; }
CryptoUtils { public static List<String> chainGenerateUUIDFromSeed(String s, int numSeedsToGenerate) { byte[] seed = ByteUtils.string2byteArray(s); ArrayList<String> uuids = new ArrayList<>(); try { for (int i = 0; i < numSeedsToGenerate; i++) { String[] record = generateSeedChainHelper(seed); seed = ByteUtils.string2byteArray(record[0]); uuids.add(record[1]); } } catch(Exception e) { Log.e("exception",e.getMessage()); } return uuids; } }
CryptoUtils { public static List<String> chainGenerateUUIDFromSeed(String s, int numSeedsToGenerate) { byte[] seed = ByteUtils.string2byteArray(s); ArrayList<String> uuids = new ArrayList<>(); try { for (int i = 0; i < numSeedsToGenerate; i++) { String[] record = generateSeedChainHelper(seed); seed = ByteUtils.string2byteArray(record[0]); uuids.add(record[1]); } } catch(Exception e) { Log.e("exception",e.getMessage()); } return uuids; }  }
CryptoUtils { public static List<String> chainGenerateUUIDFromSeed(String s, int numSeedsToGenerate) { byte[] seed = ByteUtils.string2byteArray(s); ArrayList<String> uuids = new ArrayList<>(); try { for (int i = 0; i < numSeedsToGenerate; i++) { String[] record = generateSeedChainHelper(seed); seed = ByteUtils.string2byteArray(record[0]); uuids.add(record[1]); } } catch(Exception e) { Log.e("exception",e.getMessage()); } return uuids; }  static void generateInitSeed(Context cxt, boolean forceUpdate); static UUID generateSeedHelperWithMostRecent(Context context, long mostRecentSeedTimestamp); static UUID batchFillInRecords(Context context, int numSeedsToGenerate); static void batchGenerateRecords(Context context, long ts_start, int numSeedsToGenerate); static void batchGenerateRecords(Context context, byte[] initSeed, long ts_start, int numSeedsToGenerate); static SeedUUIDRecord generateSeedHelper(byte[] seed); static SeedUUIDRecord generateSeedHelper(Context cxt, byte[] seed); static List<String> chainGenerateUUIDFromSeed(String s, int numSeedsToGenerate); static void keyInit(Context cxt); static String decrypt(Context cxt, String data); static String encrypt(Context cxt, String data); static String[] encryptBatch(Context cxt, List<String> data); static String[] decryptBatch(Context cxt, List<String> data); }
CryptoUtils { public static List<String> chainGenerateUUIDFromSeed(String s, int numSeedsToGenerate) { byte[] seed = ByteUtils.string2byteArray(s); ArrayList<String> uuids = new ArrayList<>(); try { for (int i = 0; i < numSeedsToGenerate; i++) { String[] record = generateSeedChainHelper(seed); seed = ByteUtils.string2byteArray(record[0]); uuids.add(record[1]); } } catch(Exception e) { Log.e("exception",e.getMessage()); } return uuids; }  static void generateInitSeed(Context cxt, boolean forceUpdate); static UUID generateSeedHelperWithMostRecent(Context context, long mostRecentSeedTimestamp); static UUID batchFillInRecords(Context context, int numSeedsToGenerate); static void batchGenerateRecords(Context context, long ts_start, int numSeedsToGenerate); static void batchGenerateRecords(Context context, byte[] initSeed, long ts_start, int numSeedsToGenerate); static SeedUUIDRecord generateSeedHelper(byte[] seed); static SeedUUIDRecord generateSeedHelper(Context cxt, byte[] seed); static List<String> chainGenerateUUIDFromSeed(String s, int numSeedsToGenerate); static void keyInit(Context cxt); static String decrypt(Context cxt, String data); static String encrypt(Context cxt, String data); static String[] encryptBatch(Context cxt, List<String> data); static String[] decryptBatch(Context cxt, List<String> data);  }