<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kp-Abe on Aashutosh Poudel</title><link>https://atosh502.github.io/tags/kp-abe/</link><description>Recent content in Kp-Abe on Aashutosh Poudel</description><generator>Hugo</generator><language>en-US</language><copyright>Copyright © \b20\d{2}\b, Aashutosh Poudel.</copyright><lastBuildDate>Mon, 13 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://atosh502.github.io/tags/kp-abe/index.xml" rel="self" type="application/rss+xml"/><item><title>CP-ABE and KP-ABE</title><link>https://atosh502.github.io/blog/til/2026/april/cp-abe-and-kp-abe/</link><pubDate>Mon, 13 Apr 2026 00:00:00 +0000</pubDate><guid>https://atosh502.github.io/blog/til/2026/april/cp-abe-and-kp-abe/</guid><description>&lt;p&gt;A very basic overview of CP-ABE vs KP-ABE&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Policy vs Attribute&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;attribute describes a person/entity (something they are or they have)&lt;/li&gt;
&lt;li&gt;policy is a set of conditions a person/entity needs to satisfy with their attributes&lt;/li&gt;
&lt;li&gt;attributes can be compared to a key an entity has&lt;/li&gt;
&lt;li&gt;policy can be compared to a lock an encryptor decides&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Ciphertext-Policy Attributed Based Encryption (CP-ABE)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;policy is embedded inside the ciphertext, attributes are defined on the key&lt;/li&gt;
&lt;li&gt;Example: a student with their student id card (key with attributes: &amp;ldquo;cs department&amp;rdquo;, &amp;ldquo;grad student&amp;rdquo;) can only access a certain set of labs or classrooms (locks/ciphertexts with policy) within a school&lt;/li&gt;
&lt;li&gt;useful if the encryptor is a user/client who want to limit access to data&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Key-Policy Attributed Based Encryption (KP-ABE)&lt;/p&gt;</description></item></channel></rss>