create account

QR visual cryptography by cabi5boh

View this thread on: hive.blogpeakd.comecency.com
· @cabi5boh ·
$0.05
QR visual cryptography
<html>
<p>Some time ago, I wrote a script that implements visual cryptography for QR codes. From an input text, it generates a QR code, and then, it splits it into random image shares. When the shares are superposed, they reveal the QR code.</p>
<p>This way, I thought it would be cool to print them on transparent film (slides) so that they will reveal the QR code only when superposed in the right orientation.</p>
<p>This is an example:</p>
<p><img src="https://s32.postimg.org/lyhc20o91/NPF8qs_T.jpg" width="1066" height="800"/></p>
<p>and this is the result when the slides are superposed:</p>
<p><img src="https://s32.postimg.org/bptg9xpl1/Ku6_IZ4r.jpg" width="1066" height="800"/></p>
<p>Alignment has to be done in the right orientation (out of 8 possible) and needs sub-millimeter adjustment to form an image.</p>
<p>Some QR code readers will read it directly; others might need some contrast forcing:</p>
<p><img src="https://s32.postimg.org/s23hzo3wl/ck_Kkwws.jpg" width="1066" height="800"/></p>
<h1>The crypto</h1>
<p>Individually, each share leaks no information about the resulting image. There is hence no risk in using QR's error correction, even at its 30% maximum. The formalism can be adapted to N-of-M schemes, but I implemented only the 2-of-2 (shown above) and 2-of-3 cases. There is also the possibility of a steganographic mode where the individual slides can show decoy images.</p>
<p><a href="https://gist.github.com/oriolpont/ce961d4dd6276ef55bee">This is the script.</a></p>
<p>I did not know it at first, but I was made aware that the implementation I followed was a case of <a href="http://link.springer.com/chapter/10.1007/BFb0053419">Naor and Shamir's Visual Cryptography</a>.</p>
<p>There is also <a href="https://www.facebook.com/video.php?v=712573078796691">a video showing the criticality of alignment</a> and <a href="https://imgur.com/a/RyzIs">a simulation of a 2-of-3 example</a>.</p>
<p>When I posted it some time ago (in another forum), it started rather interesting discussions.</p>
<p>Anyway, enjoy it!</p>
<p>(and feel free to ask me anything about this)</p>
</html>
👍  , , , , ,
properties (23)
authorcabi5boh
permlink46ncqq-qr-visual-cryptography
categoryprogramming
json_metadata{"tags":["programming","cryptography","qr"],"image":["https://s32.postimg.org/lyhc20o91/NPF8qs_T.jpg","https://s32.postimg.org/bptg9xpl1/Ku6_IZ4r.jpg","https://s32.postimg.org/s23hzo3wl/ck_Kkwws.jpg"],"links":["https://gist.github.com/oriolpont/ce961d4dd6276ef55bee","http://link.springer.com/chapter/10.1007/BFb0053419","https://www.facebook.com/video.php?v=712573078796691","https://imgur.com/a/RyzIs"]}
created2016-07-18 18:04:15
last_update2016-07-18 18:04:15
depth0
children4
last_payout2016-08-24 09:52:18
cashout_time1969-12-31 23:59:59
total_payout_value0.046 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,111
author_reputation634,191,438,766
root_title"QR visual cryptography"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id170,202
net_rshares27,089,436,534
author_curate_reward""
vote details (6)
@bullionstackers ·
$0.02
cani5boh
Thanks for the post

bullionstackers
👍  , ,
properties (23)
authorbullionstackers
permlinkre-cabi5boh-46ncqq-qr-visual-cryptography-20160721t025650984z
categoryprogramming
json_metadata{"tags":["programming"]}
created2016-07-21 02:56:51
last_update2016-07-21 02:56:51
depth1
children0
last_payout2016-08-24 09:52:18
cashout_time1969-12-31 23:59:59
total_payout_value0.024 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length45
author_reputation163,180,943,634,376
root_title"QR visual cryptography"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id236,700
net_rshares21,621,945,696
author_curate_reward""
vote details (3)
@solidgold ·
$0.04
Excellent posts!  I've suddenly seen a new perspective; thanks.
👍  , , ,
properties (23)
authorsolidgold
permlinkre-cabi5boh-46ncqq-qr-visual-cryptography-20160718t180745003z
categoryprogramming
json_metadata{"tags":["programming"]}
created2016-07-18 18:07:45
last_update2016-07-18 18:07:45
depth1
children2
last_payout2016-08-24 09:52:18
cashout_time1969-12-31 23:59:59
total_payout_value0.039 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length63
author_reputation2,524,341,564,215
root_title"QR visual cryptography"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id170,280
net_rshares22,159,561,827
author_curate_reward""
vote details (4)
@bullionstackers ·
Me too
👍  
properties (23)
authorbullionstackers
permlinkre-solidgold-re-cabi5boh-46ncqq-qr-visual-cryptography-20160722t135958724z
categoryprogramming
json_metadata{"tags":["programming"]}
created2016-07-22 14:00:00
last_update2016-07-22 14:00:00
depth2
children0
last_payout2016-08-24 09:52:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6
author_reputation163,180,943,634,376
root_title"QR visual cryptography"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id274,052
net_rshares52,102,431
author_curate_reward""
vote details (1)
@cabi5boh ·
Glad you enjoyed it
👍  , ,
properties (23)
authorcabi5boh
permlinkre-solidgold-re-cabi5boh-46ncqq-qr-visual-cryptography-20160718t214457646z
categoryprogramming
json_metadata{"tags":["programming"]}
created2016-07-18 21:44:57
last_update2016-07-18 21:44:57
depth2
children0
last_payout2016-08-24 09:52:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length19
author_reputation634,191,438,766
root_title"QR visual cryptography"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id174,094
net_rshares22,068,915,742
author_curate_reward""
vote details (3)