added source + javadoc for crypto