Projects tagged ‘binary’ and ‘erlang’


Jump to tag:

Projects tagged ‘binary’ and ‘erlang’

Filtered by Project Tags binary erlang

Refine results Project Tags ocaml (1) module (1) utf8 (1) network (1) cryptography (1) bit (1) random (1) interface (1) strings (1) parsing (1) file (1) utf-8 (1)

[6 total ]

0 Users

A simple Erlang client for the Quantum Random Bit Generator service. Example usage: Eshell V5.5.4 (abort with ^G) 1> c(qrbg). {ok,qrbg} 2> {ok, Socket} = qrbg:connect(). {ok,#Port} 3> Response = ... [More] qrbg:get_response(Socket, "username", "password"). <> 4> {ok, _Response, _Reason, _Length, Data} = qrbg:extract_data(Response). {ok,0, 0, 4096, <>} 5> {Int, RestData} = qrbg:extract_int(Data). {-427507221, <>} 6> Int. -427507221 7> {Int2, MoreRestData} = qrbg:extract_int(RestData). {16687880, <>} 8> Int2. 16687880As of r4, I've also included the beginnings of a drop-in replacement for the random number generation in the Crypto API: Eshell V5.5.4 (abort with ^G) 1> c(qrbg). {ok,qrbg} 2> crypto:start(). ok 3> crypto:rand_bytes(8). <> 4> qrbg:rand_bytes(8). <>This requires you to add your username and password to qrbg.hrl and is extremely inefficient if you're only looking for a few bytes. A fresh request is made for each call to qrbg:get_bytes/1, so be gentle. If you need several sets of random bytes you'll want to cache the data and extract bytes from it. It goes without saying that in its current form, this client is susceptible to a man in the middle attack, so don't use it for anything sensitive. It's an excellent source for truly random numbers though, and the QRBG service developers would like to support SSL connections in the future. [Less]
Created 12 months ago.

0 Users
 

The ocaml-bitstring project adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml.
Created about 1 year ago.

0 Users

Erlang's built in mechanism for strings are very memory and CPU inefficient because every string is a linked list of 8 byte (not bit) integers. This project is an attempt at creating a library for ... [More] working with UTF-8 strings based on Erlang's much more efficient Binary type. This library will provide typical string operations (find, split, substring, etc.) that you would find in other programming languages for the version 1.0 release. This project is licensed under the BSD license because it would be awesome if one day this was incorporated into the standard Erlang distribution. [Less]
Created 12 months ago.

0 Users

This module contains functions for binary string (called stream) processing in erlang. example: %% Return <<"lo Wo">> stream:sub_stream(<<"Hello World">>, 4, 8). %% Return ... [More] <<"Hello">> stream:strip(<<"...Hello.....">>, both, $.). %% Return [<<"abc">>, <<"def">>, <<"ghi">>, <<"jkl">>] stream:tokens(<<"abc defxxghix jkl">>, <<"x ">>). [Less]
Created 4 months ago.

0 Users

this is a memcached client written in erlang and use binary protocol to communicate with the server
Created 3 months ago.

0 Users

The Erlang binary protocol in Common Lisp, similar to py_interface, JInterface etc.
Created about 1 year ago.