Class to encrypt/decrypt with RSA Public/Private Keys
$30-250 USD
Anulowano
Opublikowano około 10 lat temu
$30-250 USD
Płatne przy odbiorze
I need a class to store protected data with RSA key pair:
Admin user to create the first user:
- Generate pass encryption key protected by the hash of the user password (per user)
- Generate data encryption pass
- Store the data encryption pass encrypted with the pass encryption key of the user
- Generate the data encription key protected by the data encryption pass
Create aditional users:
- Admin has to retrieve the data encryption pass (needs to be decrypted from the database)
- User to be inserted into the database with a hash of the temporary password that will be changed in the first login
- Generate pass encryption key protected by the temporary password
- Store the data encryption pass encrypted with the pass encryption key of the user
Change the password:
- Decrypt the data encryption pass
- Generate new pass encryption key protected by the hash of the new user password
- Encrypt the data encryption pass with the new pass encryption key
Inserting data
- Encrypt the data with the data encription key
Retrieving data:
- Decrypt the data encryption pass
- Decrypt the data
Everything should be commented, and easy to identify