Soluții

Cum putem vedea Licenta windows 10

Daca dorim sa vedem key-ul de licenta pentru windows 10 incercam una dintre cele 3 metode de mai jos.

  1. Deschidem CMD cu drepturi de administrator si scriem urmatoarea comanda:

wmic path SoftwareLicensingService get OA3xOriginalProductKey

2. Deschidem PowerShell cu drepturi de administrator si scriem urmatoarea comanda:

powershell “(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey”

3. Intram in RUN si scriem: “regedit” -> apoi intram in calea Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform

  • La BackupProductKeyDefault vom vedea key-ul de licenta.

[mai mult...]

Categorize Password as Strong or Weak using Regex in Python

Given a password, we have to categorize it as a strong or weak one. There are some checks that need to be met to be a strong password. For a weak password, we need to return the reason for it to be weak.

Conditions to be fulfilled are:

  • Minimum 9 characters and maximum 20 characters.
  • Cannot be a newline or a space
  • There should not be three or more repeating characters in a row.
  • The same string pattern(minimum of two character length) should not be repeating.
[mai mult...]

Python program to check the validity of a Password

In this program, we will be taking a password as a combination of alphanumeric characters along with special characters, and check whether the password is valid or not with the help of few conditions.

Primary conditions for password validation :

  1. Minimum 8 characters.
  2. The alphabets must be between [a-z]
  3. At least one alphabet should be of Upper Case [A-Z]
  4. At least 1 number or digit between [0-9].
  5. At least 1 character from [ _ or @ or $ ].
[mai mult...]