开发者

Regarding encrypting a song [closed]

开发者 https://www.devze.com 2023-02-26 15:20 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消