One-key MAC - Wikipedia
You should use HMAC for that. Attacker is some cases is able to encrypt message without knowing the key. For example Padding Oracle Attack may allow this. – pgolen May 12 '12 at 7:10 HMAC-SHA1 vs. AES - Cryptography Stack Exchange HMAC-SHA1 is not an encryption algorithm. It is a hashing function. Wikipedia and other sources are good at explaining what AES, HMAC, and SHA-1 are. In all honestly, you shouldn't be rolling your own crypto and if you know this little about crypto you probably shouldn't be developing this part of the application at all. Crypt and Decrypt online tool conversion : MD5,AES,HMAC Free online tool crypt MD5,AES,HMAC,SHA1,SHA256 and decrypt some of them. Please consider MD5 is also used to check if a document (e.g.: a text file) has not been updated; for instance, if you apply the MD5 algorithm to a text, if you change the text then MD5 value will change.Try it now for free.
Secure Shell Configuration Guide, Cisco IOS Release 15S
HMAC(Hash-based message authentication code) is a message authentication code that uses a cryptographic hash function such as SHA-256, SHA-512 and a secret key known as a cryptographic key. HMAC is more secure than any other authentication codes as it contains Hashing as well as MAC. Below is a free online tool that can be used to generate HMAC authentication code. Free Online HMAC Generator / Checker Tool (MD5, SHA-256 A HMAC is a small set of data that helps authenticate the nature of message; it protects the integrity and the authenticity of the message. The secret key is a unique piece of information that is used to compute the HMAC and is known both by the sender and the receiver of the message. This key will vary in length depending on the algorithm that Excel VBA Base64 HMAC SHA256 and SHA1 Encryption - Excel
What is Hash-based Message Authentication Code (HMAC
Here is a clone of the hash_hmac function you can use in the event you need an HMAC generator and Hash is not available. It's only usable with MD5 and SHA1 encryption algorithms, but its output is identical to the official hash_hmac function (so far at least). Encryption types — MIT Kerberos Documentation