Skip to content

command line password encode #1336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
darmbrust opened this issue Apr 4, 2020 · 0 comments
Open

command line password encode #1336

darmbrust opened this issue Apr 4, 2020 · 0 comments

Comments

@darmbrust
Copy link

Adding something like this would be handy for preparing accounts for use cases like mine that involve docker, and pre-created accounts for system access.

PasswordHashPbkdf2

	public static void main(String[] args)
	{
		System.out.println("Please enter the password to hash:");
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String temp = br.readLine();
		System.out.println(new PasswordHashPbkdf2().toHashedEntry(temp.toCharArray(), ""));
	}

Related to this enhancement: #1166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants