Skip to content

Instantly share code, notes, and snippets.

View DevWurm's full-sized avatar

Leo Lindhorst DevWurm

  • Saxonia Systems AG @saxsys
  • Dresden, Germany
View GitHub Profile
@DevWurm
DevWurm / parser.h
Created May 12, 2015 04:18
CSV parsing function
template<typename T>
void csv_parser<T>::set_line(string input) {
line.clear();
T buffer;
stringstream converter;
while (input.size() > 0) { //get field from input and delete this segment until
//input is empty
if (input.find_first_of(",") != -1) { //(not the last segment [one ',' left])
converter << input.substr(0, input.find_first_of(",")); //add segment to converter
@DevWurm
DevWurm / rsa_database Hash Algorithms
Created May 11, 2015 16:07
This is the Hash Algorithm of the rsa_database project in a java implementation made by KKegel
package main;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class programm {
public static void main(String[] args) {
start(); //start prozedure