Skip to main content

All Questions

Filter by
Sorted by
Tagged with
-1 votes
1 answer
247 views

How to generate Random Number-String(Alpha-Numeric) from String with given Key

So far i need to generate 6 length random key from given string I assume given string is always unique. With that i cant to plain so i need to encrypt into some 6 length random String plainText = &...
Munkhdelger Tumenbayar's user avatar
-2 votes
1 answer
2k views

how to encrypt passwords for password manager in java [closed]

I want to make a java password manager so I want to encrypt the passwords and insert it into the database then retrieve it decrypted can you please explain to me how to do it? And what type of ...
Yahya's user avatar
  • 5
0 votes
1 answer
305 views

What is the best way to store a password in Java swing? [closed]

I am trying to make my own password manager and I want to store the passwords I input with some encryption/hashing algorithm. I researched on what would be the best and everyone seems to have mixed ...
John Gironda's user avatar
0 votes
0 answers
46 views

Validating password in two different methods

I am trying to figure out how to get the program to check the password entered in menu selection 7 to decrypt a file to match the same password entered in menu selection 6. I tried an if statement ...
Will K's user avatar
  • 23
1 vote
0 answers
30 views

How to switch off non-java logs in an Openshift container?

I have a Spring Boot application which is deployed to Openshift. When starting, container logs some sensitive data passed to application (passwords, accounts): Starting the java application using /...
SubZr0's user avatar
  • 137
1 vote
2 answers
939 views

Password Encryption and store in database

I have created a simple login page with basic requirements. I have stored the registered user details in database. As of now I have stored their password in plain text. But I want to encrypt the ...
Cat's user avatar
  • 41
-2 votes
2 answers
102 views

How to achieve encyption and decryption in java

hello I am new to java and i want to develop a simple login application where i have to store values in db. I have read many examples for encryption and decryption but i cant understand(may be because ...
rohan's user avatar
  • 161
0 votes
1 answer
96 views

Cannot decode some passwords?

I added a password checker for my program, I thought it works fine since I could save the password in a file (encoded) and could enter the password in the password field and it let me into the main ...
DJ NoReality TXC_TryhardOne's user avatar
1 vote
2 answers
5k views

How to encrypt/decrypt a password from a JPasswordField Java

here's my problem, I am working on a system where user can create an account, the user launches a program, he clicks on the register button. A new page appears and he has to enter his information(...
Molka's user avatar
  • 11
2 votes
1 answer
2k views

KeySpec throws "Salt not found" - Salt isn't a requirement

I am currently working on a small bit of code, which is supposed to encrypt a byte[] before it gets stored inside a file. In the following snippet, I am trying to generate a SecretKey from a Password ...
David K.'s user avatar
  • 477
0 votes
2 answers
573 views

Java - What's wrong with choosing String to store password which is encrypted? [closed]

We store the password as char array in java and find the good reason for this. I came across an interview question stating "What if password is encrypted and we save that in String, is that okay? or ...
Ajeetkumar's user avatar
  • 1,329
-1 votes
1 answer
909 views

To set the password OutputStream from the response to Excel sheet using Java Servlet

If I got the OutputStream from the response , can you write the contents of the OutputStream to the response which will be sent back to the browser? In my scenario i want to set a password to Excel ...
kareem's user avatar
  • 1
1 vote
1 answer
3k views

How to saved encrypted/hashing password in XML file using Java

I want to save the password in XML file. But the plaintext is not secure enough. So I want to save it in hashed value or encrypted data. But I don't know how to do this. Since MD5 or SHA-2 is one way ...
patjing's user avatar
  • 21
-1 votes
1 answer
108 views

Managing the password of an android application

I am developing a secure android application! I want to manage the password in a secure way, which I mean I don't want to save the password or my private key. Is there any good password manager? Or I ...
Zeinab's user avatar
  • 43
1 vote
1 answer
2k views

BadPaddingException when decrypting using a different Cipher object

Please excuse the hackjob! Still new at coding and was utilizing a lot of sys outs to troubleshoot, and this is my first post at StackOverflow. Thank you for the help! So I've been working on trying ...
Tommy's user avatar
  • 23

15 30 50 per page
1
2 3 4 5 6