Regarding encrypting a song [closed]
I want to 开发者_Go百科encrypt an eminem song into a file in such a way that it cannot be decrypted. And i want to use it as a hash to encrypt my password.
How should i go about it in C or C++? What APIs can i use in Windows/Linux.
Google around for password managers.
Some (keepass eg) will even allow you to use a key file.
If you wanted to use a keyfile to generate a password, may I suggest doing it yourself like so:
cat eminem.mp3
| openssl dgst -sha1 -binary -hmac password \
| openssl enc -base64 \
| cut -c 1-8
Replace 'password' by something stronger; this way you can use different passwords, all deterministically generated from the same keyfile
精彩评论