This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1"> | |
<title>XLSX Reader JS</title> | |
<link rel="stylesheet" href="screen.css" media="screen"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// define the array of numbers and objects | |
const array = [{ | |
nome: 'joão', | |
idade: 14 | |
},{ | |
nome: 'joão', | |
idade: 14 | |
},7,9,8,5,15,3,9,8,6]; | |
// remove duplicate numbers only, items of type object are not affected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
catchError(err => { | |
const errorCode = err.code; | |
let errorMessage = this.VerifyErroCode(errorCode); | |
if (errorMessage == null) { | |
errorMessage = err.message; | |
} | |
console.log(errorMessage); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CryptoJSAES | |
{ | |
public function encrypt($passphrase, $data, $salt = null): string | |
{ | |
$salt = $salt ?: openssl_random_pseudo_bytes(8); | |
[$key, $iv] = $this->_evpKDF($passphrase, $salt); | |
$ct = openssl_encrypt($data, 'aes-256-cbc', $key, true, $iv); | |
return $this->_encode($ct, $salt); | |
} |
OlderNewer