javascript - generate a key for SJCL that expires automatically after a period of time? -
i want encrypt , decrypt data on client-side using sjcl library, want key expired after scheduled time , question here -
is possible generate such key while using sjcl(or other library may be) ,
if yes how? provided key must demolished on client side without server interaction?
any appreciated. thanks
no, outside of third party (keeping key) or normal programming techniques (i.e. wiping key using timer) there no key has such intrinsic time out.
certificates have validity period though. such certificate possible sign messages, adding certificate signed message. accept messages certificate has not expired. in other words, key still available, has become useless.
for use either pgp or cms container formats, able store certificates data , signature. data may encrypted well.
Comments
Post a Comment