瀏覽代碼

Removing setIterations() commented lines from examples. We do not want to encourage people to use this.

Curtis Farnham 4 年之前
父節點
當前提交
6155afba39
共有 2 個文件被更改,包括 0 次插入4 次删除
  1. 0 2
      examples/decrypt.php
  2. 0 2
      examples/encrypt.php

+ 0 - 2
examples/decrypt.php

@@ -8,8 +8,6 @@ $base64Encrypted = "AgGXutvFqW9RqQuokYLjehbfM7F+8OO/2sD8g3auA+oNCQFoarRmc59qcKJv
     . 'EN7Cv";
 
 $cryptor = new \RNCryptor\RNCryptor\Decryptor;
-
-//$cryptor->setIterations(100);
 $plaintext = $cryptor->decrypt($base64Encrypted, $password);
 
 echo "Base64 Encrypted:\n$base64Encrypted\n\n";

+ 0 - 2
examples/encrypt.php

@@ -6,8 +6,6 @@ $password = "myPassword";
 $plaintext = "Here is my test vector. It's not too long, but more than a block and needs padding.";
 
 $cryptor = new \RNCryptor\RNCryptor\Encryptor;
-
-//$cryptor->setIterations(100);
 $base64Encrypted = $cryptor->encrypt($plaintext, $password);
 
 echo "Plaintext:\n$plaintext\n\n";