@@ -0,0 +1,666 @@
+#%0A# secret.py%0A# Created by pira on 2017/08/09.%0A#%0A%0A#coding: utf-8%0Au%22%22%22For Secret informations.%22%22%22%0A%0Aimport random%0Aimport numpy as np%0A%0Adef generateSecret(n):%0A%09u%22%22%22Generate 0 or 1 random secret information for simulation.%0A%09@param  n : length%0A%09@return secret : secret information list%0A%09%22%22%22%0A%09secret = np.random.randint(2, size =n)%0A%09return secret%0A%0Adef str2bi(secret_str):%0A%09u%22%22%22Convert string to binary.%0A%09@param  secret_str : string secret information%0A%09@return secret_bi : binary secret information %0A%09%22%22%22%0A%09pass%0A%0A%0Adef bi2str(secret_bi):%0A%09u%22%22%22Convert binary to string.%0A%09@param  secret_bi : binary secret information%0A%09@return secret_str : string secret information %0A%09%22%22%22%0A%09pass%0A

create secret.py