This is a simple library to help in enc/dec blob file. Below how to use
This function is used to set the key length for encryption. The default length is 128 bit.
Example:
// set key length to 256 bit
blobEncryptor.setKeyLength(256);
This function is used to encrypt the blob file and return an encrypted blob with same type.
Example:
blobEncryptor.encryptFile(blob,pass,function(b){
// b is an encrypted blob
});
This function is used to encrypt the blob file and return an encrypted blob with same type.
Example:
blobEncryptor.decryptFile(blob,pass,function(b){
// b is a decrypted blob
});