70 skills found · Page 3 of 3
mafintosh / Random Bytes SeedGet a random buffer based on a seed. Useful for reproducible tests
euantorano / Sysrandom.nimA Nim library to generate random numbers and random ranges of bytes using the system's PRNG.
mcarden / ShotgunA tool written by Dr Manfred Thaller to simulate digital aging by randomly zeroing bytes in a target file.
morganabel / TlshSharpTLSH is a fuzzy matching library designed by Trend Micro. Given a byte stream with a minimum length of 256 characters (and a minimum amount of randomness), TLSH generates a hash value which can be used for similarity comparisons.
Tinram / RND64Fast multi-threaded data generator.
okabsd / RandbytesTiny module for accessing random bytes
EntropyString / ErlangEntropyString for Erlang
andieguo / ThinkingInJava《Java编程思想 第4版》例程集合,包含数组、bignumber、接口回调(仿button监听事件实现)、集合(collection)、自定义Comparator器、String与Byte的相互转换、泛型、自定义Iterable、Properties类的读取写入操作、集合排序、栈Stack、字符串操作、线程操作、基本工具类(DateTime、NULL、Random、Time)、杨辉三角
vapor-community / RandomModule for generating random bytes and numbers.
RCasatta / HashchainCreate a sha256 chain starting from 32 random bytes, compatible with Todd/Taaki timelock
crazy-max / CwsCryptoPHP class for password hashing with multi encryption methods
frozeman / RandomHexWill generate a random HEX string of a specifc byte size.
csknk / Radix 64 EncodingSimple Radix 64 Encoding in C: Represent binary data (bytes) as ASCII characters. Allows cryptographic keys, random numbers etc to be represented in printable format, like GPG --armor.
killme2008 / Secure RandA Clojure library designed to generate secure random float,int,bytes and strings based on java.security.SecureRandom
sdrapkin / Fcrand⚡fcrand is a drop-in, high-performance alternative to Go "crypto/rand", providing cryptographically secure random bytes up to 10x faster.
sajmire / Benchmarking Using CloudBENCHMARKING This project aims at Benchmarking AWS t2.micro instance for its CPU, MEMORY, DISK and NETWORK. CPU Benchmarking This program calculates the Integer and Floating point operations, in terms of GIOPS and GFLOPS. The main aim is to utilize the complete CPU cycles by executing different arithmetic instructions. Utilizing the CPU’s Floating point unit (FPU) completely so that it gives us the maximum FLOPS. DISK Benchmarking The design includes implementation for 3 different block sizes i.e. 1B, 1KB and 1MB each for Sequential and Random operations. It implements 4 methods, sequential read & write and random read & write. The sequential access is done using a file, and data is read from the file and written into it, in a sequential manner. For random access, a random number is generated which lies within the file size, and is seeked to that location onto that file and read and write operations are performed. MEMORY Benchmarking For different block sizes i.e. 1 Byte, 1 KB and 1 MB, sequential and random access to the memory is made. The disk access are made using memcpy() function which is used to perform read and write operation onto the memory. NETWORK Benchmarking The benchmarking is done for both TCP as well as UDP protocol. The code is written to be executed on two different instances of AWS. This code does the basic packets transmission from Client to Server and back again, while implementing this we find the RTT of the transmission. The packets transmitted are of various sizes i.e. 1 Byte, 1KB and 1MB. The TCP being reliable and connection oriented requires pre connection setup and accepting of connection between client and server. On the other hand UDP being connection less, the packets are sent and received without and pre established connection. How to run: Considering the instance on which the program is going to be tested has the required compilers for Java and C programs Extract the Folder named "Cloud-Benchmarking.zip" or Clone the Repository "CPU BENCHMARKING" goto the folder named "Cpu" Open the terminal for the instance you are running on execute the script file named "CPUscript.sh" as: sh CPUscript.sh The desired output for GIOPS and GFLOPS will be displayed "600 Sec Plot values for CPU" In the "Cpu" folder, you will find a script "newscript.sh" execute the script file as: sh newscript.sh The terminal will display the appropriate msg for Integer and Floating point operations The operations run for 10 mins each, giving 2 .txt files having the values for per second The "Cpu" folder already contains "PlottedFloat" and "PlottedInteger" text files, which shows these values For this script new files will be generated named "PlottedFloatvalues" and "PlottedIntegervalues" text files "DISK BENCHMARKING" goto the folder named "Disk" Open the terminal for the instance you are running on execute the script file named "DISKscript.sh" as: sh DISKscript.sh The desired output for RANDOM and SEQUENTIAL Read & Write operations will be displayed "MEMORY BENCHMARKING" goto the folder named "Memory" Open the terminal for the instance you are running on execute the script file named "MEMORYscript.sh" as: sh MEMORYscript.sh The desired output for RANDOM ACCESS and SEQUENTIAL ACCESS for Memory will be displayed "NETWORK BENCHMARKING" goto the folder named "Network" Here we will require 2 instances to be opened one of the isntance will be acting as SERVER and another will be acting as CLIENT Before execution, the files for Client and Server needs to modified with the IPAddress For the file "ClientBM.java", change the LINE NO: 18, to the IPAddress of the Server For the file "ClientUDP.java", change the LINE NO: 42, to the IPAddress of the Server Copy the entire "Network" folder on both the terminals execute command javac *.java on both the terminals On Server side execute the script as: sh Serverscript.sh On Client side execute the script as: sh Clientscript.sh The desired output for TCP & UDP will be displayed on the Client Side terminal "BENCHMARK TOOLS" Considering that all the Benchmarks files are already present "LINPACK BENCHMARK FOR CPU" goto "l_mklb_p_11.3.1.002/benchmarks_11.3.1/linux/mkl/benchmarks/linpack" path execute ./runme_xeon64 this will run the Benchmark with its own values and the output will be displayed to run with different input data, execute ./xlinpack_xeon64 a message will be prompted press ENTER then type the values for Number of equations to solve (problem size): Leading dimension of array: (should be >= 5000) Number of trials to run: Data alignment value (in Kbytes): (should not be > 64) "IOZONE BENCHMARK FOR DISK" goto iozone3_434/src/current path execute ./iozone -a This will give the Disk Benchmark values for different file sizes, To execute for a particular file size execute ./iozone -g# -s 1024 This will give the Output for file size of 1024 Kbytes "STREAM BENCHMARK FOR MEMORY" do, wget http://www.nersc.gov/assets/Trinity--NERSC-8-RFP/Benchmarks/Jan9/stream.tar This will download STREAM in your current working directory do gcc -o stream stream.c execute ./stream The desired output will be displayed "IPERF BENCHMARK FOR NETWORK" do sudo apt-get install iperf, to install IPERF "FOR TCP" On one instance as Server execute: iperf -s and on Client execute: iperf -c -n It will send the packet and the bandwidth will be displayed accordingly "FOR UDP" On one instance as Server execute: iperf -su and On Client execute: iperf -c -u -n It will send the packet and the bandwidth will be displayed accordingly
shaddy43 / Byte ShufflerThis repository contains a bash script, that can change a specific set of bytes with random bytes to change a binary signature every time it is executed.
ldclabs / Ic CaptchaGenerating CAPTCHAs with given random bytes for the Internet Computer.
adarshsankarrs / Traffic Classification OvSA system that can employ machine learning methods involving logistic regression, K-Means clustering, KNN, SVC, Gaussian NB, and Random Forest Classifier to categorize DNS, Telnet, Ping, Voice, Game, and Video traffic flows based on packet and byte information.
sanusanth / Java All Basic Program Part 2What is Java? Java is a popular programming language, created in 1995. It is owned by Oracle, and more than 3 billion devices run Java. It is used for: Mobile applications (specially Android apps) Desktop applications Web applications Web servers and application servers Games Database connection And much, much more! Why Use Java? Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.) It is one of the most popular programming language in the world It is easy to learn and simple to use It is open-source and free It is secure, fast and powerful It has a huge community support (tens of millions of developers) Java is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa Setup for Windows To install Java on Windows: Go to "System Properties" (Can be found on Control Panel > System and Security > System > Advanced System Settings) Click on the "Environment variables" button under the "Advanced" tab Then, select the "Path" variable in System variables and click on the "Edit" button Click on the "New" button and add the path where Java is installed, followed by \bin. By default, Java is installed in C:\Program Files\Java\jdk-11.0.1 (If nothing else was specified when you installed it). In that case, You will have to add a new path with: C:\Program Files\Java\jdk-11.0.1\bin Then, click "OK", and save the settings At last, open Command Prompt (cmd.exe) and type java -version to see if Java is running on your machine Keyword Description abstract A non-access modifier. Used for classes and methods: An abstract class cannot be used to create objects (to access it, it must be inherited from another class). An abstract method can only be used in an abstract class, and it does not have a body. The body is provided by the subclass (inherited from) assert For debugging boolean A data type that can only store true and false values break Breaks out of a loop or a switch block byte A data type that can store whole numbers from -128 and 127 case Marks a block of code in switch statements catch Catches exceptions generated by try statements char A data type that is used to store a single character class Defines a class continue Continues to the next iteration of a loop const Defines a constant. Not in use - use final instead default Specifies the default block of code in a switch statement do Used together with while to create a do-while loop double A data type that can store whole numbers from 1.7e−308 to 1.7e+308 else Used in conditional statements enum Declares an enumerated (unchangeable) type exports Exports a package with a module. New in Java 9 extends Extends a class (indicates that a class is inherited from another class) final A non-access modifier used for classes, attributes and methods, which makes them non-changeable (impossible to inherit or override) finally Used with exceptions, a block of code that will be executed no matter if there is an exception or not float A data type that can store whole numbers from 3.4e−038 to 3.4e+038 for Create a for loop goto Not in use, and has no function if Makes a conditional statement implements Implements an interface import Used to import a package, class or interface instanceof Checks whether an object is an instance of a specific class or an interface int A data type that can store whole numbers from -2147483648 to 2147483647 interface Used to declare a special type of class that only contains abstract methods long A data type that can store whole numbers from -9223372036854775808 to 9223372036854775808 module Declares a module. New in Java 9 native Specifies that a method is not implemented in the same Java source file (but in another language) new Creates new objects package Declares a package private An access modifier used for attributes, methods and constructors, making them only accessible within the declared class protected An access modifier used for attributes, methods and constructors, making them accessible in the same package and subclasses public An access modifier used for classes, attributes, methods and constructors, making them accessible by any other class requires Specifies required libraries inside a module. New in Java 9 return Finished the execution of a method, and can be used to return a value from a method short A data type that can store whole numbers from -32768 to 32767 static A non-access modifier used for methods and attributes. Static methods/attributes can be accessed without creating an object of a class strictfp Restrict the precision and rounding of floating point calculations super Refers to superclass (parent) objects switch Selects one of many code blocks to be executed synchronized A non-access modifier, which specifies that methods can only be accessed by one thread at a time this Refers to the current object in a method or constructor throw Creates a custom error throws Indicates what exceptions may be thrown by a method transient A non-accesss modifier, which specifies that an attribute is not part of an object's persistent state try Creates a try...catch statement var Declares a variable. New in Java 10 void Specifies that a method should not have a return value volatile Indicates that an attribute is not cached thread-locally, and is always read from the "main memory" while Creates a while loop Method Description Return Type charAt() Returns the character at the specified index (position) char codePointAt() Returns the Unicode of the character at the specified index int codePointBefore() Returns the Unicode of the character before the specified index int codePointCount() Returns the Unicode in the specified text range of this String int compareTo() Compares two strings lexicographically int compareToIgnoreCase() Compares two strings lexicographically, ignoring case differences int concat() Appends a string to the end of another string String contains() Checks whether a string contains a sequence of characters boolean contentEquals() Checks whether a string contains the exact same sequence of characters of the specified CharSequence or StringBuffer boolean copyValueOf() Returns a String that represents the characters of the character array String endsWith() Checks whether a string ends with the specified character(s) boolean equals() Compares two strings. Returns true if the strings are equal, and false if not boolean equalsIgnoreCase() Compares two strings, ignoring case considerations boolean format() Returns a formatted string using the specified locale, format string, and arguments String getBytes() Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array byte[] getChars() Copies characters from a string to an array of chars void hashCode() Returns the hash code of a string int indexOf() Returns the position of the first found occurrence of specified characters in a string int intern() Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index String isEmpty() Checks whether a string is empty or not boolean lastIndexOf() Returns the position of the last found occurrence of specified characters in a string int length() Returns the length of a specified string int matches() Searches a string for a match against a regular expression, and returns the matches boolean offsetByCodePoints() Returns the index within this String that is offset from the given index by codePointOffset code points int regionMatches() Tests if two string regions are equal boolean replace() Searches a string for a specified value, and returns a new string where the specified values are replaced String replaceFirst() Replaces the first occurrence of a substring that matches the given regular expression with the given replacement String replaceAll() Replaces each substring of this string that matches the given regular expression with the given replacement String split() Splits a string into an array of substrings String[] startsWith() Checks whether a string starts with specified characters boolean subSequence() Returns a new character sequence that is a subsequence of this sequence CharSequence substring() Extracts the characters from a string, beginning at a specified start position, and through the specified number of character String toCharArray() Converts this string to a new character array char[] toLowerCase() Converts a string to lower case letters String toString() Returns the value of a String object String toUpperCase() Converts a string to upper case letters String trim() Removes whitespace from both ends of a string String valueOf() Returns the primitive value of a String object String Method Description Return Type abs(x) Returns the absolute value of x double|float|int|long acos(x) Returns the arccosine of x, in radians double asin(x) Returns the arcsine of x, in radians double atan(x) Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians double atan2(y,x) Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta). double cbrt(x) Returns the cube root of x double ceil(x) Returns the value of x rounded up to its nearest integer double copySign(x, y) Returns the first floating point x with the sign of the second floating point y double cos(x) Returns the cosine of x (x is in radians) double cosh(x) Returns the hyperbolic cosine of a double value double exp(x) Returns the value of Ex double expm1(x) Returns ex -1 double floor(x) Returns the value of x rounded down to its nearest integer double getExponent(x) Returns the unbiased exponent used in x int hypot(x, y) Returns sqrt(x2 +y2) without intermediate overflow or underflow double IEEEremainder(x, y) Computes the remainder operation on x and y as prescribed by the IEEE 754 standard double log(x) Returns the natural logarithm (base E) of x double log10(x) Returns the base 10 logarithm of x double log1p(x) Returns the natural logarithm (base E) of the sum of x and 1 double max(x, y) Returns the number with the highest value double|float|int|long min(x, y) Returns the number with the lowest value double|float|int|long nextAfter(x, y) Returns the floating point number adjacent to x in the direction of y double|float nextUp(x) Returns the floating point value adjacent to x in the direction of positive infinity double|float pow(x, y) Returns the value of x to the power of y double random() Returns a random number between 0 and 1 double round(x) Returns the value of x rounded to its nearest integer int rint() Returns the double value that is closest to x and equal to a mathematical integer double signum(x) Returns the sign of x double sin(x) Returns the sine of x (x is in radians) double sinh(x) Returns the hyperbolic sine of a double value double sqrt(x) Returns the square root of x double tan(x) Returns the tangent of an angle double tanh(x) Returns the hyperbolic tangent of a double value double toDegrees(x) Converts an angle measured in radians to an approx. equivalent angle measured in degrees double toRadians(x) Converts an angle measured in degrees to an approx. angle measured in radians double ulp(x) Returns the size of the unit of least precision (ulp) of x double|float