This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

i need help in random key generation algorithm and source code in java

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hii frnds need help in the algorithm required for random key generation algorithm and code for my project ........for encrypting the datafile ......and even for decrypting also



thnks ;
 
Bartender
Posts: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you have so far, and where are you stuck making progress? If you haven't started yet, what ideas have you had?
 
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hang on, you should be showing some effort. You cannot expect people here to just tell you the algorithm and also give you the code. So if you need someone to do that then you must hire someone to do that.
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, and welcome to the Ranch!

It's not at all clear what your requirments are, or what part you're having trouble with. Please TellTheDetails(⇐click) so people will have a better understanding and be better able to guide you.

Also, please UseOneThreadPerQuestion.(⇐click) Posting the same question multiple times leads to fragmented discussions.

https://coderanch.com/t/571137/java/java/help-random-key-generation-algorithm
https://coderanch.com/t/571135/java/java/hii-algorithm-code-encryption-decryption
 
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
https://coderanch.com/t/542412/Streams/java/create-password-protected-file
 
Bartender
Posts: 10964
87
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows ChatGPT
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The book "Core Java 6" (I think it was volume II) had an excellent example of a generate/encode/decode java program.
 
sulochana dasari
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:What do you have so far, and where are you stuck making progress? If you haven't started yet, what ideas have you had?




we are thinking to develop a project ... in which on providing a key as an input ...should produce or generate a random key(number) which is used in encryption of a datafile .....could you suggest me any algorithm which is useful or wit any reference book ...please
thank you
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cryptography is highly complicated subject. It is very easy to mess things up in a single piece of code and compromise the security of the overall solution. To be able to generate safe keys for encryption, you'd need very strong knowledge in cryptography, which you're not going to infer from a single book or internet discussion. If you're interested, you might read how some innocuous shortcomings in the design and use of the Enigma encoding machine helped the allies break the cipher in the WW2.

If you need the encryption to survive a determined attack, you should definitely obtain proper security certificate from a professional company and use that to do the encryption. Somebody (not me) might be able to help you with the details. If this top-notch security is not actually your goal, a simpler solution might suffice. In any case, the Security forum would be probably better suited for the discussion.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hii frnds need help in the algorithm required for random key generation algorithm and code for my project ........for encrypting the datafile ......and even for decrypting also
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tim asked a spot-on question way back when:

Tim Moores wrote:What do you have so far, and where are you stuck making progress? If you haven't started yet, what ideas have you had?

 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

durai pandi wrote:hii frnds need help in the algorithm required for random key generation algorithm and code for my project ........for encrypting the datafile ......and even for decrypting also


Durai,

1. Welcome to JavaRanch.
2. Please don't revive old threads to simply re-post the same question. It's called "hi-jacking" - and it's frowned on on almost any site; not just ours.

Winston
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic