FIELD OF DISCLOSURE

Aspects of the present disclosure generally relate to use of computer hardware and/or software to manage data, and in particular to providing a stateless system to encrypt and decrypt data.

BACKGROUND

Various methods of cryptography (e.g., encrypting and decrypting data) are known. Encryption may be associated with changing the data from being in a transparently readable format to being in an encoded, unreadable format with the help of an encryption algorithm. Decryption may be associated with changing the data from being in the encoded, unreadable format to being in the transparently readable format with the help of a decryption algorithm. Encoded/encrypted data may be decoded/decrypted with a given decryption key. In an example, symmetric cryptography may utilize encryption and decryption algorithms that rely on a single private key for encryption and decryption of data. Symmetric cryptography is considered to be relatively speedy. One example of an encryption and decryption algorithm utilized by symmetric encryption may be an AES encryption cipher. On the other hand, asymmetric cryptography may utilize encryption and decryption algorithms that rely on two separate but mathematically-related keys for encryption and decryption of data. For instance, data encrypted using a public key may be decrypted using a separate but mathematically-related private key. The public key may be publicly available through a directory, while the private key may remain confidential and accessible by only an owner of the private key. Asymmetric encryption may also be referred to as public key cryptography. One example of an encryption and decryption algorithm utilized by asymmetric encryption may be Rivest-Shamir-Adleman (RSA) protocol.

SUMMARY

In one aspect, the present disclosure contemplates a method including determining, for a user device, an assigned key pair including an assigned public key and an associated assigned private key; determining, for content to be encrypted, an access key pair including an access public key and an associated access private key; encrypting the access private key by utilizing the assigned public key; encrypting a randomly generated key by utilizing the access public key; and encrypting content utilizing the randomly generated key.

In another aspect, the present disclosure contemplates a device comprising a memory and a processor communicatively coupled to the memory, the processor being configured to: determine, for a user device, an assigned key pair including an assigned public key and an associated assigned private key; determine, for content to be encrypted, an access key pair including an access public key and an associated access private key; encrypt the access private key by utilizing the assigned public key; encrypt a randomly generated key by utilizing the access public key; and encrypt content utilizing the randomly generated key.

In another aspect, the present disclosure contemplates a non-transitory computer readable medium storing instructions, which when executed by a processor cause the processor to: determine, for a user device, an assigned key pair including an assigned public key and an associated assigned private key; determine, for content to be encrypted, an access key pair including an access public key and an associated access private key; encrypt the access private key by utilizing the assigned public key; encrypt a randomly generated key by utilizing the access public key; and encrypt content utilizing the randomly generated key.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory in nature and are intended to provide an understanding of the present disclosure without limiting the scope thereof. In that regard, additional aspects, features, and advantages of the present disclosure will be apparent to one skilled in the art from the following detailed description.

