i want to implement Pseudo Random Function for these two functions in java:
f(sk,.)={0,1}^* multiply sk ---> {0,1}^k,
where sk is secret key (a random key).
g(.,.)= {0,1}^k multiply {0,1} ----> {0,1}^L
which function should used in this case.
You can use SecureRandom class in Java to generate cryptographically secure random numbers. See https://docs.oracle.com/javase/8/docs/api/java/security/SecureRandom.html
Pseudo Random numbers must to be calculated as a function of the current data, hour, minutes, seconds for being different in each current moment.
Use the Random function which you already have in Java, and set the seed to set your secret key. Check the answers in this thread.
https://stackoverflow.com/questions/12458383/java-random-numbers-using-a-seed
create inverted index which consist of words mapping to files contain this words. then i want to encrypt this inverted index by using some encryption algorithm.
07 August 2019 3,615 7 View
When i compute the time complexity of cipher text policy attribute based encryption CP-ABE . I found it O(1) by tracing each step in code which mostly are assignments operations. Is it possible...
05 June 2019 4,143 6 View
iam already read about RC2 encryption algorithm but for mor explanation , i want an example that explain the algorithm.
06 July 2018 217 0 View
iam working in searching encrypted data, then retrieving from this data. i want to compute precision and recall so i want to know the formula to compute true positive , false positive , true...
03 April 2018 7,248 8 View
i write code contain vector of legth 1000 that vector split into two vectors of same length follow specific algorithm , this two vectors multiply into inverse of two matrices that should be the...
01 February 2018 8,944 5 View
I have binary vector of 0s and 1s that i want to encrypt it then make search in it. First i convert vector into hashmap Which key represent index of each dimension in this vector and value...
09 October 2017 4,098 2 View
iam working in searchable encryption. first i make index for set of files, the index is B+ tree , the leaf of this tree is bloom filter which represent the words in each file. each bloom filter...
09 October 2017 5,920 2 View
in the following code in euclidean hash some of the result of the rand.nextGaussian() implementation is negative when set dimension 100 and w is 2. which affect in the hash method. public...
06 July 2017 2,591 5 View
he paper propose scheme for search in encrypted data using the tree of bloom filters as data structure to represent the index of the files then encrypted the leaves of the tree which consist of...
05 June 2017 1,504 2 View
Iam working in searching encrypted data and made index of files consist of b+tree of bloom filters in its nodes . And I want to encrypt the tree and bloom filter to make search in it.
01 February 2017 3,862 1 View
How to calculate the RMSD values for a MD simulation using MOE?
07 August 2021 0 0 View
When I tried to energy minimization my system, I got fatal error as below. Fatal error: Atomtype opls_116 not found Although I've already added this line: ; include water #include "oplsaa.ff/spc.itp" to [molecultype] directive in my topology.
16 June 2021 0 0 View
Hello, good day! I am trying to simulate similar bimorph piezoelectric harvester with below commands. However, the output power doesn't change with resistor value. Please help to find the reason. ET,10,CIRCU94,0 !SET UP RESISTOR R,1,100000 !RESISTANCE VALUE TYPE,10 !SET ELEMENT TYPE E,1,2 !CREATE RESISTOR BETWEEN NODES 1 AND 2 Thanks in advance Regards,
02 March 2021 0 0 View
Hello all, In SPSS I am going to code 2 open-ended questions. I have already read all the answers and I made a list of the most important categories to which I can code the answers. This question...
02 March 2021 1,757 4 View
Hello, I have a mechanism where air rises due to convective flows. In this simulation, nothing is driving the air except this. I understand that the Boussinesq approximation only works for small...
02 March 2021 4,910 3 View
Dear all, I just saw this example in FB on the difference between laminar flow and turbulent flow. The flow from a pipe hits the sink and scattered. The flow from the pipe is characterized as...
02 March 2021 1,999 5 View