Skip to main content

Posts

Showing posts from September, 2019

Intro about Password Validator Caesar Cipher and Emirp mumbers

Password Validator Password validator is a program that validates passwords to match specific rules. For example, the minimum length of the password must be eight characters long and it should have at least one uppercase letter in it. A valid password is the one that conforms to the following rules: - Minimum length is 5; - Maximum length is 10; - Should contain at least one number; - Should contain at least one special character (such as &, +, @, $, #, %, etc.); - Should not contain spaces. Examples: Input: "Sololearn" Output: false Input: "John Doe" Output: false Input: "$ololearn7" Output: true Write a program to checks if the user input is a valid password or not. Caesar Cipher The Caesar cipher is a type of substitution cipher in which each letter in the plaintext is shifted to a certain number of places down the alphabet. For example, with a shift of 1, A would be replaced by B, B would become C, and so on. The met...