public static byte[] derivateKey(byte[] Password, byte[] Salt, int counter, int keyLength)
 {
     return(CryptoEnginePKCS5.pbkdf2(Password, Salt, counter, keyLength));
 }
 public static byte[] createCryptKey(byte[] serialNumber, byte[] masterKey)
 {
     return(CryptoEnginePKCS5.pbkdf2(masterKey, serialNumber, 2000, 32));
 }