The iv is prefixed to the encrypted data
aesCBC128Encrypt will create a random IV and prefixed to the encrypted code.
aesCBC128Decrypt will use the prefixed IV during decryption.
Inputs are the data and key are Data objects. If an encoded form such as Base64 if required convert to and/or from in ...
PHP has no support for running code concurrently unless you install extensions such as pthread. This can be sometimes bypassed by using proc_open() and stream_set_blocking() and reading their output asynchronously.
If we split code into smaller chunks we can run it as multiple suprocesses. Then usi...
There are very good configurations to force typings and get more helpful errors which are not activated by default.
{
"compilerOptions": {
"alwaysStrict": true, // Parse in strict mode and emit "use strict" for each source file.
// If you have wrong c...
The point about temporary tables is that they're limited to the scope of the connection. Dapper will automatically open and close a connection if it's not already opened. That means that any temp table will be lost directly after creating it, if the connection passed to Dapper has not been opened.
...
In this example, we will log into the GitHub website by using the FormElement class.
// # Constants used in this example
final String USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36";
final String LOGIN_FORM_U...
Random mask will show a rundom number from the specified range instead of the actual value:
ALTER TABLE Product
ALTER COLUMN Price ADD MASKED WITH (FUNCTION = 'random(100,200)')
Note that is some cases displayed value might match actual value in column (if randomly selected number matches valu...
You can grant in-privileged users right to see unmasked values using the following statement:
GRANT UNMASK TO MyUser
If some user already has unmask permission, you can revoke this permission:
REVOKE UNMASK TO MyUser
download QtSpim from here 32.6 MB
install it easy installation
make your first assembly file (.s) or use the sample C:\Program Files (x86)\QtSpim\helloworld.s
run the program from the desktop shortcut or C:\Program Files (x86)\QtSpim\QtSpim.exe
there are two windows for the program the main ...
Password Based Key Derivation can be used both for deriving an encryption key from password text and saving a password for authentication purposes.
There are several hash algorithms that can be used including SHA1, SHA256, SHA512 which are provided by this example code.
The rounds parameter is use...
See Swift 3 example for usage information and notes
func pbkdf2SHA1(password: String, salt: [UInt8], keyCount: Int, rounds: Int) -> [UInt8]? {
return pbkdf2(CCPBKDFAlgorithm(kCCPRFHmacAlgSHA1), password:password, salt:salt, keyCount:keyCount, rounds:UInt32(rounds))
}
func pbkdf2SHA256(p...
CloudFormer template translates the existing AWS entities to a generate new CloudFormation template to accelerate the time to recreate the environment. The CloudFormer launches in a default VPC which might not be suitable in the cases where the default VPC is deleted. This code base is fork from the...
See Swift 3 example for usage information and notes
func pbkdf2SHA1Calibrate(password:String, salt:[UInt8], msec:Int) -> UInt32 {
let actualRoundCount: UInt32 = CCCalibratePBKDF(
CCPBKDFAlgorithm(kCCPBKDF2),
password.utf8.count,
salt.count,
CCPseudoRandom...
Determine the number of PRF rounds to use for a specific delay on the current platform.
Several parameters are defaulted to representative values that should not materially affect the round count.
password Sample password.
salt Sample salt.
msec Targeted duration we want to achieve f...
SVN
FreeBSD project use SVN as default SCM. Source could be download with svnlite software.
Get Current
cd /usr/src
svnlite checkout https://svn.freebsd.org/base/head .
Get Releases
cd /usr/src
svnlite checkout https://web.freebsd.org/base/release/11.0.0 .
Tarball (http & ftp)
You c...
Build the world
Go to the freebsdsrc/ (the root directory of the FreeBSD source tree you've already downloaded) and build the world:
sudo make -j${NUMBER_OF_PROCESSORS} buildworld KERNCONF=MODEDKERNEL -DNO_CLEAN
Estimated time
Estimated time on Hasee Q540S running on a one processor: 8 hours...
Let's configure the destination directory for the root filesystem of
your new FreeBSD (for example /usr/home/beastie/MODEDKERNEL).
Add the following lines to /etc/src.conf to set it up:
.if ${KERNCONF} == "MODEDKERNEL"
DESTDIR?=/usr/home/beastie/MODEDKERNEL
MODULES_OVERRID...
Install the world
sudo make installworld KERNCONF=MODEDKERNEL
Estimated time on Hasee Q540S: 5 minutes.
Install the kernel
sudo make installkernel KERNCONF=MODEDKERNEL
Estimated time on Hasee Q540S: a few seconds.
Spring is a framework, which provides bunch of classes, by using this we don't need to write boiler plate logic in our code, so Spring provides an abstract layer on J2ee.
For Example in Simple JDBC Application programmer is responsible for
Loading the driver class
Creating the connection
Cre...