资源简介
matlab开发-ShamirsSecretSharing。沙米尔的秘密共享方案,也被称为(k,n)阈值,在这个文件中实现。

代码片段和文件信息
%--------------------------------------------------------------------------
% Shamir‘s Secret Sharing Demo
% By Yue Wu
% ywu03@ece.tufts.edu
% 01/10/2010
%--------------------------------------------------------------------------
clear all
close all
clc
s = -1234.5; % the secret number
k = 3; % the number of pieces of info which are sufficient for reconstruction
n = 6; % total number of pieces of info
d = ShamirSharing(skn); % generate pieces of info parts
c = d(3:5:); % collect 3 pieces of info
r = ShamirReconstruction(ck); % reconstruct secret info
display([‘the secret info is ‘ num2str(s)])
display([‘the used info is:‘])
display(c);
display([‘reconstruction is ‘ num2str(r)])
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 718 2011-01-10 11:04 Demo.m
文件 1581 2011-01-10 11:03 ShamirReconstruction.m
文件 1601 2011-01-10 11:03 ShamirSharing.m
文件 1306 2014-02-12 13:22 license.txt
- 上一篇:matlab开发-othellom
- 下一篇:matlab开发-ParetoSet
相关资源
- matlab开发-能带计算
- matlab开发-FlockingAlgorithm
- matlab开发-MuellerStokesJonesCalculus
- matlab开发-HX711的自定义数据库
- matlab开发-SMOTEBoost
- matlab开发-果蝇优化算法第二版
- matlab开发-多变量决策树
- matlab开发-水轮发电机模型
- matlab开发-交通警告标志识别标签代码
- matlab开发-RUSBoost
- matlab开发-基于遗传算法的机器人运动
- matlab开发-MPU6050加速度陀螺仪
- matlab开发-功率曲线FAsmallscalewindturbi
- matlab开发-NASAJPLDE405开发星历表
- matlab开发-SortinoRatio
- matlab开发-永磁TDC并联电机数学模型
- matlab开发-3相SPWM整流器
- matlab开发-Kilobotswarm控制Matlabarduino
- matlab开发-简单音频播放
- matlab开发-记录文件的绘图仪加速度、
- matlab开发-永磁同步电机PMSM动态数学模
- matlab开发-多目标优化差分进化算法
- matlab开发-随机微分方程解算
- matlab开发-波长调制光谱的二次谐波模
- matlab开发-仿制药生物生理学基础药动
- matlab开发-使用svmrfe选择功能
- matlab开发-KDTreeNearestNeighborandRangeSear
- matlab开发-stlread
- matlab开发-三维图像堆栈查看器
- matlab开发-动态电压恢复器故障dvr
评论
共有 条评论