Welcome to DSC

Data Security is encryption class for transforming plain text into cipher text. This ensures data confidentiality by using 160 bit key to encrypt blocks of plain text. The strength of key it’s very high and to break the key it is needed ~2^160 attempts which is number with length of 17 numbers and today’s processors aren’t strong enough to break this key for a short time.
Encryption algorithm is designed and discovered by Arlind Nushi, author of this script and named ANCrypt.

SafeCookie

SafeCookie is implemented under ANCrypt algorithm and ensures:

Data Confidentiality – Ensures that data are hidden from everyone expect persons who have passkey and encryption/decryption algorithm.


Data Integrity – Guarantees that data saved on cookies cannot be altered or modified from another user. If data’s are modified you are in knowledge of that by using a method for testing cookie integrity. Data integrity in cookies is very important because we know that every user has possibility to alter cookies on his own browser and those are read by your site.

Lets say for example if you have a cookie to check if user is logged and on cookie is saved user access privileges in this form: user_logged=false, user_privileges=normal_user. Any person can make modifications on these cookies because they are easy to understand and they are meaning of a function on website. Then user try and can change user_logged=true, user_privileges=admin, and this is the reason why un-protected cookies are weakness of your site.

But with SafeCookie, a cookie is saved on this way:

And to test a cookie data integrity this is the flow of how any cookie can be verified if is altered (modified) and it’s not the cookie you saved before.

The same cookie of form user_logged=true after is processed and saved from SafeCookie, it has this form:

cookie(name: d688c4ccd7e20183b67f80d8816a2126, value: i1leWo1XUV1VgFCIS39UWEdKTlVLSEhBTUNEQHZyP0F7fntv)
and it is very hard to figure out what this cookie is used for, but a user that has the passkey knows exactly what this cookie mean.

You can buy this class at Envato® Marketplace Copyright © Author: Arlind Nushi <[email protected]>