Recently I had need to shuffle an array, but keep the associative keys. Here’s the simple function to do that. Continue reading “PHP Array Key Value Shuffle”
Random Password Generator in Javascript
I’ve been wanting to have a simple password generator. There are a few solutions out on the internet, but none quite what I wanted. Here is a simple and customizable JavaScript password generator.
Monty Hall Paradox
The Monty Hall paradox is a paradox because it is counter-intuitive even though it is mathematically correct. This article demonstrates with PHP code how the paradox works.
Generating Random Passwords 6 – Fixing the Non-Printing Characters
In the last post, Generating Random Passwords 5 – Saving The Password, there was an issue with the passwords that were posted here. Did you catch it? They were not 32 characters long, even though I had specified that. Or rather, they had characters we could not see. These characters did not render, but were there.
Continue reading “Generating Random Passwords 6 – Fixing the Non-Printing Characters”
Generating Random Passwords 5 – Saving The Password
This is a continuation of previous post, Generating Random Passwords 4 – Emoji.
What we need to do now is to save the passwords we have been creating. As we have seen, the console does not always represent the characters correctly. Given that, we cannot rely that copy-and-paste will work correctly either.
Continue reading “Generating Random Passwords 5 – Saving The Password”
Generating Random Passwords 4 – Emoji
In Generating Random Passwords 3 – Untypable Characters we experimented with generating characters that are not on our keyboard. We can take that another step and use emoji characters.
Generating Random Passwords 3 – Untypable Characters
In the last post, Generating Random Passwords 2 – Controlling the Character Pool , we were able to customize the character pool for passwords on the fly. Since we are talking about passwords for one piece of software to talk to another software, the character pool does not need to have characters that are on our keyboard.
Continue reading “Generating Random Passwords 3 – Untypable Characters”
Generating Random Passwords 2 – Controlling the Character Pool
In the last post, Generating Random Passwords, we were able to create a random password of a length that we chose. However, we could not modify the character pool without modifying the source code.
Continue reading “Generating Random Passwords 2 – Controlling the Character Pool”
Generating Random Passwords
As a programmer, I will often need a password for a service account. A service account being an account that a computer program uses, and not a human. As such, the password can be long, and does not exactly need to be type-able.
I tried looking online for a random password generator, and none of them, I felt, were up to the task of creating passwords for my service accounts.