Write a program in C++, C# or Java to implement RSA algorithm using Libraries (API).
Cryptographic hash functions are widely used for securing communication, storing hash values of passwords in databases, verifying that a message or a file has been transmitted correctly between two entities and others. One of the most widely used algorithms is MD5 (Message Digest Five), which produces a 128-bit hash value, usually expressed as a 32 hex digits number. It is the successor of MD4 and MD2, all of them being developed by Ronald Rivest. Another hash algorithm, also based on MD4, is SHA-1, a cryptographically secure one-way hash algorithm that produces a 160-bit message digest (usually represented as a 40 hex digit number).
Point to be remember before executing the Program
- Create Text File (.txt) for Message. Eg.: (""H:\\workspace\\ICS\\src\\messageDigest.txt"")
- Create the Java Class of name : SHA1
import java.io.*;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/*
* author @ Professional Cipher [www.professionalcipher.com]
*/
public class SHA1 {
public SHA1(){
}
public static void main(String args[]) throws NoSuchAlgorithmException, FileNotFoundException , IOException{
MessageDigest messageDigest = MessageDigest.getInstance("MD5");
FileInputStream fileInputStream = new FileInputStream("H:\\workspace\\ICS\\src\\messageDigest.txt");
byte[] bytes = new byte[30];
int i=0;
while((i=fileInputStream.read(bytes))!=-1)
{
messageDigest.update(bytes , 0 , i);
}
fileInputStream.close();
byte[] digest = messageDigest.digest();
FileOutputStream fileOutputStream = new FileOutputStream("H:\\workspace\\ICS\\src\\digest.txt");
fileOutputStream.write(digest);
fileOutputStream.close();
}
}
For All BE IT Programs : Click Here
A very nice post. Thanks for sharing such a piece of valuable information...
ReplyDeleteAWS Training in bellandur
Marathahalli AWS Training Institues
Kalyan nagar AWS training in institutes
Data Science Training in bellandur
Data Science Training in Kalyan Nagar
Data science training in marathahalli
his blog is really useful and it is very interesting thanks for sharing, it is really good and exclusive.
ReplyDeletesalesforce Training in Bangalore
uipath Training in Bangalore
blueprism Training in Bangalore
Great article! It's really a pleasure to visit your site. I've been following your blogs for a while and I'm really impressed by your works. Keep sharing more such blogs.
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Very nice post here and thanks for it .I always like and such a super blog of these post.Excellent and very cool idea and great blog of different kinds of the valuable information's.
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
I am impressed by the way of writing your blog and topics which you covered. I read all your post which is useful and informative.
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! digital marketing course in coimbatore
ReplyDelete
ReplyDeleteReally nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
360DigiTMG
I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.
ReplyDelete360DigiTMG
I am impressed by the information you shared, enjoyed reading waiting for next blog.
ReplyDelete360DigiTMG Data Science Training in Hyderabad
Truly, one of the best article I've ever witnessed thanks for sharing.
ReplyDeleteData Analytics Certification
These musings just knocked my socks off. I am happy you have posted this.
ReplyDeletedata science course in noida
Informative blog, big thumbs up for sharing this blog with us.
ReplyDeleteData Science Course Training in Hyderabad with Placements
It is the perfect time to make some plans for the future and it is the time to be happy. I've read this post and if I could I would like to suggest some interesting things or suggestions. Perhaps you could write the next articles referring to this article. I want to read more things about it!
ReplyDeletebusiness analytics course in hyderabad
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post.
ReplyDeletedata analytics training in hyderabad