Questions tagged [password-encryption]

Password encryption is the act of securing a password with another password. If your intent is to use passwords for authentication (e.g. for logins), you should look at password hashing instead of encryption. Use this tag for question about how or better still whether to encrypt passwords.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
22 views

password_hash() function is preventing login in my PHP code [duplicate]

Before using password_hash() in my login.php page, I was able to log in to the page, but after using the password_hash() command, even though the information in the database is correct, I am unable to ...
0 votes
1 answer
25 views

Good Password generation

I am new to the coding scene. I was wondering about something. So I see a lot of password generators make passwords that are crazy long and complication. But this issue here is the password can be ...
1 vote
1 answer
64 views

How to create the first user in an python web application with JWT tokens and encrypted passwords?

I have created a FastAPI application which has a database with postgresql. The application uses docker, a container for the app and another for the database. Furthermore, it implements authentication ...
  • 67
0 votes
0 answers
21 views

Reset SQL Server Application Role Password with Encrypted or Hash Password

I need to automate reset password of database application role. Password must be encrypted or hash form due to security reason. I tried to convert password into hashbytes form and reset application ...
0 votes
0 answers
33 views

How to use encrypted password with sftp login?

I want to write a shell script where user interaction is not allowed and I want to use sftp login with in the script. Now I have few challenges to execute this approach. There is no user interaction ...
-3 votes
1 answer
40 views

Seeking for a method to store encrypted passwords in a human readable settings file

Attention: Please read this topic carefully: This question is not seeking recommendations for books, tools, software libraries, and more. Instead, I am seeking for a method behind existing crypto in ...
0 votes
0 answers
28 views

how to securely store Masterkey in the application?

I have a spring boot java application in which all of the necessary data including clients' passwords, P12 passwords, ... are encrypted by the Masterkey. The encryption type is Symmetric. At the start ...
0 votes
0 answers
32 views

How can I use a hashed password without password_verify in the array?

For a customer (doctor) I have created a contact form. In the mailer.php configuration the email password is entered in plain text in an array. Of course, a doctor is not allowed to give me his ...
  • 35
0 votes
0 answers
52 views

How can I encrypt JDBC user and password info in plain text properties file? [duplicate]

I'm working on refactoring a native java code last touched in 1999. There are no design patterns, modern methodologies, security standards applied, no toolsets like password vaulting systems, we don'...
0 votes
1 answer
75 views

Theory Question regarding Cryptography in NodeJS/Javascript

I have an application built in NodeJS that connects to a mongo database. I would like for the password to be encrypted when a user signs up (saved into the database) and then decrypted and verified ...
1 vote
0 answers
28 views

Hashing passwords to protect against brute force attacks [duplicate]

I am trying to add a small proof of work function to protect a password from brute force attacks. The solution I have so far is based on the security iPhones have on their lock screen passcodes. I'm ...
  • 1,686
0 votes
1 answer
76 views

Storing encrypted password with fernet and key generated from any text,

I'm looking for a way to encrypt main password using short key/pin and decrypt it by this pin every time. I tried to generate hash (sha256) from short key given by user and cut off the hash to desired ...
0 votes
0 answers
32 views

SpringBoot password Encoder UnitTest is null

@Service @RequiredArgsConstructor public class MemberService { private final MemberRepository memberRepository; private final PasswordEncoder passwordEncoder; @Transactional public ...
0 votes
1 answer
162 views

How to change the default admin password in ActiveMQ Artemis

I've checked the docs, but so far haven't found how to change the default admin password in ActiveMQ Artemis 2.27.1 created when using the artemis create command. Here are the contents of the etc/...
0 votes
0 answers
53 views

Security and encryption of passwords for multiple login automation using Selenium in Java

I am currently developing a web automation system that helps me know how mutch money I have on different web pages I use. The problem is that I made selenium read a file with all the passwords for ...
  • 1
2 votes
1 answer
58 views

How to add password lock to a zip file or any file in flutter?

How to add password lock to a zip file or any file in flutter? I am using ZipFileEncoder for creating a zip file, but this does not allow to add password lock to it. How can I lock this file with ...
0 votes
0 answers
9 views

From a cyber security point of view, what cipher algorithm and digest is safer to use if you want to store a salted password file?

I assume the most important factor for anyone making this choice would be security itself. Ie if someone hacks into your server and steals the file, they will have to crack the password file in order ...
1 vote
1 answer
147 views

How should I store a single use username and password for an Angular app without a login page?

I will be creating an Angular app that will make calls to a DotNet Core API I have created. Because the API itself calls a third-party API which needs to be secured with an API key, I want to secure ...
1 vote
0 answers
28 views

cryptography.fernet.InvalidToken: Password Manager/Generator

I am trying to build a Tkinter GUI password manager that saves the encrypted passwords on a SQLite Database; and it returns the decrypted password back when you search in the database by the website ...
  • 43
0 votes
0 answers
54 views

Encrypting Password parameters in Powershell for GET request to ServiceNow

has anyone found a good solution to encrypting the password parameters in Powershell for ServiceNow API? This is the default version : `$user = "admin" $pass = "admin" # Build ...
0 votes
0 answers
65 views

Rail Add Password on Uploaded PDF file

I have an Rails application where the user can upload a PDF. The application will add a password automatically(the password will be generated using the user's data) then will save it to AWS S3. So, ...
0 votes
1 answer
133 views

AesGcm could not be found VS 2022

In C#, I am unable to use AesGcm, I have used 'using System.Security.Cryptography'. I have installed the System.Security.Cryptography.Algorithms package with NuGet, but it is not found when I use '...
  • 1
0 votes
1 answer
54 views

Using Ubuntu, encrypt passwords in bash

I have two files: one to store passwords and the other to read passwords and establish a database connection. How can I encrypt my password so that I may read it from another file to access the ...
0 votes
0 answers
38 views

Just dont understand the use of .isModified function in node (why do we hash password in pre hooks?)

I'm sorry, I know this is pretty basic but I just don't understand this! I've just gotten done doing JS for two years and now I wanna learn node, so far nothing has troubled me but this code: ...
0 votes
1 answer
264 views

Verifying hash password PBKDF2 with Java

I am currently following a tutorial: https://www.baeldung.com/java-password-hashing Section 5.2 However, now that the has has been created, a followup question to this tutorial was.. I just hashed a ...
0 votes
0 answers
11 views

How to replace StandardPasswordEncode with BcryptPasswordEncoder

CUrrenlty my application is using StandardPasswordEncoder, We have some issue with checkmarx identiy so we have to replace this class with other class like BcryptEncoder.java class. could you please ...
-2 votes
2 answers
239 views

Can databases encrypted with Laravel or any other encryption method be decrypted?

everyone. I'm learning Laravel and I'm in the start of my journey. I was learning about encryption and decryption in Laravel today and then this thought came into my mind. Could be a stupid one but I ...
0 votes
0 answers
45 views

Encrypted password manager. A file sanvalley.txt which has to show encrypted version of the code and later decrypt it as output. file shows input raw

import string from cryptography.fernet import Fernet '''Creation and Calling of the encryption(discarded after calling)''' '''def write_key(): key = Fernet.generate_key() with open("key....
0 votes
1 answer
50 views

Decryptor Function gives output a list of numbers instead of string

I have a encryptor and decryptor function in my code as you can see below, it encrypts and decrypts a plain string using same algorithm Rijndael-js with the help of crypto and PKCS7-Padding packages. ...
0 votes
0 answers
67 views

PWA stored username and password in IndexDB

I have 1 requirement of PWA to enable user to login offline. What Software Architect propose is create a GET REST API to disclose all the username and hash password. And if online, PWA will call the ...
0 votes
1 answer
22 views

Password Matcher in DotNet Core

I am working on project in .Net Core 5. I am storing all recent passwords (hashed value of course) used by a user, in a details table (Master-Detail format). I am storing those passwords to prevent ...
0 votes
4 answers
97 views

pbkdf2 - How do I verify hashed user password (C#)?

When a User registers, I run the password they input through CreateHash() - see below. I then get passed back a Dictionary<string, string> with the Hash and the Salt in it which I then store in ...
0 votes
0 answers
172 views

c# how to convert aes iv/key byte array into writeable string

I have a small inhouse app (and any advice on other methods is appreciated as well) where I utilize 2 token strings that I'd like to encrypt with aes. While this is a super small app and I don't think ...
1 vote
1 answer
165 views

I am trying to disable the /decrypt endpoint in Spring cloud config server so that anyone with access to /decrypt endpoint wont be able to decrypt

with /decrypt endpoint availble for anyone with access I feel the encryption is not secure and its compramised Is there any way we can disable the decrypt endpoint? url: http://localhost:23000/encrypt ...
0 votes
1 answer
230 views

How to encode a Cisco Type 8 secret without a cisco device using python

I was wondering if it is possible to generate the hashed secret shown in the CISCO documentation using a python script, without a CISCO device. https://learningnetwork.cisco.com/s/article/cisco-...
0 votes
1 answer
47 views

TYPO3 CMS V9: How to batch import userdata with one-time password into fe_users table?

I have to import many thousands of userdata into fe_users table. The problem is that the userdata include one-time passwords which are set elsewhere. Is there a way to import and salt the passwords ...
0 votes
1 answer
626 views

How to securely pass credentials in python?

Passing login credentials into a python script for a website. However, I want the credentials to not be stored as plaintext in the .py files. How can I securely store the login credentials in a .py ...
  • 166
1 vote
0 answers
44 views

Password Encryption for PDI Job

I am creating a batch file to schedule a PDI spoon job. F:\pdi-ce-9.1.0.0-324\data-integration\kitchen.bat /rep:<RepositoryName> /job:ParentJob /dir: /user:<UserName> /pass:<Password>...
  • 67
0 votes
1 answer
82 views

Returning null password when read decrypted password from decryppwd.sh file

I am working on Java web application that should get the decrypted password from .sh file. (e.g file name: decryppwd.sh) My issue is it returns a blank password when using variable inside the ...
0 votes
0 answers
210 views

HMAC vs BCrypt for Api Key encruption

I am designing an Api for a client and trying to keep it very basic. Instead of using an external library for the first iteration, we will be setting up an Api Key and allowing users to hit the ...
0 votes
1 answer
78 views

SFSL error while encrypting password in snowflake

I am trying to insert the password in a table using encrypt() function provided by a snowflake. The below statement is working fine select encrypt('Patient tested positive for COVID-19', $...
0 votes
1 answer
50 views

BCryptPasswordEncoder not matching hashes when password has arabic characters

I have pretty standard DaoAuthenticationProvider @Bean public DaoAuthenticationProvider authProvider() { final DaoAuthenticationProvider authProvider = new ...
0 votes
0 answers
53 views

grabbing a file from sharepoint online via CLI to on-prem (curl?)

please bare with me, as i am not a programmer by trade.. usually just writing simple five lines in a shell script is enough to do what i need. i am trying download a file from sharepoint online. my ...
  • 1
0 votes
1 answer
129 views

Is there a good way to change hash salt for password hash?

I have a database that stores hashed passwords using a "private salt". However I am afraid that at some point the attacker will somehow know my private salt (for example a developer that ...
  • 647
2 votes
3 answers
515 views

Why does my encryption returns weird string of symbols as the encrypted text?

I am creating an algorithm where it has to encrypt and decrypt passwords by using JCE and AES. I will keep the encrypted text into a database, however I'm facing two problems. The first problem being ...
  • 21
-1 votes
1 answer
194 views

BcryptEncoder configuration in Spring Security Configuration

So I'm creating this restservice but I am struggling with the encoderconfiguration. I created a config class to set the passwordencoderBean, as instructed in replies below. My code compiles. But when ...
0 votes
0 answers
533 views

Unlock Excel 97-2003 Password Protected File

I need help to access my old data from 2006 but I forgot the password to open. I ran out of idea what kind of method I should use I know how to unprotect sheet that is locked using vba, but this case ...
0 votes
1 answer
44 views

Is there any way of reading encrypted xlsx file via OpenXML lib?

I need to read encrypted xlsx file via OpenXML. Is there any ways to do it ?
0 votes
0 answers
66 views

am trying to encrypt a dictionary using cryptography

I'm trying to make a passowrd locker, that takes input and encrypt the data and also am trying to save the data into a dictionary and encrypt the values only. from cryptography.fernet import Fernet ...
-2 votes
1 answer
62 views

Trying to add elements to list but getting out of range errors

import re sifrelenmisdizi = [] kelimeler = [] bulunankelimeler = [] input = input("Lütfen Şifrelenmiş Veriyi giriniz : ") def sifrecoz(message): #im cracking password here encrypted = &...

1
2 3 4 5
24