Snippets Collections
wmic UserAccount where Name="Hypnotix802" set PasswordExpires=False

net accounts /maxpwage:unlimited
import javax.crypto.*;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.security.*;

    public class DecryptDbeaver {

        // from the DBeaver source 8/23/19 https://github.com/dbeaver/dbeaver/blob/57cec8ddfdbbf311261ebd0c7f957fdcd80a085f/plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/impl/app/DefaultSecureStorage.java#L31
        private static final byte[] LOCAL_KEY_CACHE = new byte[] { -70, -69, 74, -97, 119, 74, -72, 83, -55, 108, 45, 101, 61, -2, 84, 74 };

        static String decrypt(byte[] contents) throws InvalidAlgorithmParameterException, InvalidKeyException, IOException, NoSuchPaddingException, NoSuchAlgorithmException {
            try (InputStream byteStream = new ByteArrayInputStream(contents)) {
                byte[] fileIv = new byte[16];
                byteStream.read(fileIv);
                Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
                SecretKey aes = new SecretKeySpec(LOCAL_KEY_CACHE, "AES");
                cipher.init(Cipher.DECRYPT_MODE, aes, new IvParameterSpec(fileIv));
                try (CipherInputStream cipherIn = new CipherInputStream(byteStream, cipher)) {
                    return inputStreamToString(cipherIn);
                }
            }
        }

        static String inputStreamToString(java.io.InputStream is) {
    java.util.Scanner s = new java.util.Scanner(is).useDelimiter("\\A");
    return s.hasNext() ? s.next() : "";
  }

  public static void main(String[] args) throws Exception {
    if (args.length != 1) {
      System.err.println("syntax: param1: full path to your credentials-config.json file");
      System.exit(1);
    }
    System.out.println(decrypt(Files.readAllBytes(Paths.get(args[0]))));
  }  

}
@IBAction func eyeButtonPressed(_ sender: Any) {
        if passwordTextField.isSecureTextEntry == false {
            passwordTextField.isSecureTextEntry = true
            eyeImageView.image = UIImage(systemName: "eye.slash")
        } else {
            passwordTextField.isSecureTextEntry = false
            eyeImageView.image = UIImage(systemName: "eye")
        }
        eyeImageView.setImageColor(color: UIColor.gray)
    }
function mind_set_cookie_expire( $time ) {

return time() + 86400;  // 1 day

}

add_filter( 'post_password_expires', 'mind_set_cookie_expire' );
<label
					aria-label="password"
					class="form-label"
					for="password"
				>Password</label>
				<p><small>6 - 12 characters, one number, one symbol, one uppercase and
						one lowercase letter.</small></p>
				<input
					class="form-control"
					title="Must be 6 - 12 characters and contain at least one number, one symbol, one uppercase and one lowercase letter."
					type="password"
					id="password"
					name="password"
					required
					pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{6,12}$"
				/>
const comparePassword = async (password, hash) => {
    try {
        // Compare password
        return await bcrypt.compare(password, hash);
    } catch (error) {
        console.log(error);
    }

    // Return false if error
    return false;
};

//use case
(async () => {
    // Hash fetched from DB
    const hash = `$2b$10$5ysgXZUJi7MkJWhEhFcZTObGe18G1G.0rnXkewEtXq6ebVx1qpjYW`;

    // Check if password is correct
    const isValidPass = await comparePassword('123456', hash);

    // Print validation status
    console.log(`Password is ${!isValidPass ? 'not' : ''} valid!`);
    // => Password is valid!
})();
star

Sun Sep 10 2023 11:30:54 GMT+0000 (Coordinated Universal Time) https://www.ntlite.com/community/index.php?threads/set-user-password-to-never-expire.3328/

#password
star

Fri Aug 04 2023 08:16:46 GMT+0000 (Coordinated Universal Time) https://www.ionos.com/digitalguide/server/configuration/windows-11-automatic-login/#:~:text=Step%201%3A%20Open%20the%20%E2%80%9CRun%E2%80%9D%20dialog%20box%20again%20with,to%20set%20an%20automatic%20login.

#password
star

Mon Jul 31 2023 15:36:00 GMT+0000 (Coordinated Universal Time) https://www.sameerahmad.net/blog/dbeaver-password

#java #dbeaver #password
star

Wed Jul 05 2023 05:32:27 GMT+0000 (Coordinated Universal Time)

#ios #swift #eye #password #hide #show
star

Mon Apr 24 2023 05:43:06 GMT+0000 (Coordinated Universal Time) https://passwordprotectwp.com/wordpress-password-protected-page-cookie/

#password #cookie
star

Mon Dec 27 2021 20:53:52 GMT+0000 (Coordinated Universal Time) https://emn178.github.io/online-tools/sha256.html

#password #hashing #sha256
star

Wed Jun 16 2021 12:29:04 GMT+0000 (Coordinated Universal Time)

#pattern #regex #htm #password
star

Sun Jun 06 2021 15:47:09 GMT+0000 (Coordinated Universal Time) https://attacomsian.com/blog/nodejs-password-hashing-with-bcrypt

#bcrypt #authentication #express #nodejs #password

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension