Click here to Skip to main content
15,902,835 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,

I'm looking to protect some data. i.e.

Data block: ABCDEFGHIJKLMNOPQRSTUVWXYZ

I want to store a random encryption key e.t.

Encryption key: A1B2C3D4

But I want to protect this data and key from abuse by internal staff. So each user will be issued with a 4 digit code.

User code: 1234

I'm looking for an encryption technique where if the wrong key is provided it still returns a readable result, just the wrong one.

I plan to encrypt the "Encryption Key" using the user code. The user code will be provided by the user in each session.

Can anyone suggest and existing cypher or alternate technique which allow me to achieve this?

It needs to be a fairly strong encryption.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900