Skip to content
Liesware edited this page Jan 25, 2019 · 2 revisions


How to ???

#!/usr/bin/env python

import socket
import json
import os,binascii

def sending(message):
	ip = ''
	port = 6613
	BUFFER_SIZE = 65536
	s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
	s.connect((ip, port))
	data = s.recv(BUFFER_SIZE)
        print data
	return data


In this example we generate 12 random bytes with RAND_RP algorithm without entropy.

  • On data_js["algorithm"] can be one of {RAND_RP, RAND_AUTO, RAND_RDRAND}

To add entropy we need to the parameter "entropy": INT

  • 0 means with entropy using /dev/urandom
  • 1 means with entropy using /dev/random
  • 2 means without entropy

Json to rand

{"version":1,"algorithm":"rand flavor","length":INT ,"entropy":INT}
You can’t perform that action at this time.