![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
cordova-plugin-aes256-encryption
Advanced tools
This cordova ionic plugin allows you to perform AES 256 encryption and decryption on the plain text. It's a cross-platform plugin which supports both Android and iOS. The encryption and decryption are performed on the device native layer so that the perfo
This cordova ionic plugin allows you to perform AES 256 encryption and decryption on the plain text. It's a cross-platform plugin which supports both Android and iOS. The encryption and decryption are performed on the device native layer so that the performance is much faster. The entire operations is performed in the background thread.
AES 256 CBC mode encryption is used. For Android, PKCS5Padding is used and for iOS PKCS7Padding is used.
Install Plugins
ionic cordova plugin add cordova-plugin-aes256-encryption
cordova plugin add cordova-plugin-add-swift-support --save
Declare cordova variable and access the plugin after the platform get initialized
import { Injectable } from '@angular/core';
import { Platform } from 'ionic-angular/index';
declare var cordova: any;
@Injectable()
export class AES256Provider {
secureKey: String = '12345678910123456789012345678901'; // Any string, the length should be 32
secureIV: String = '1234567891123456'; // Any string, the length should be 16
constructor(private platform: Platform) {
// To generate random secure key
this.generateSecureKey('some string'); // Optional
// To generate random secure IV
this.generateSecureIV('some string'); // Optional
let data = "test";
encrypt(this.secureKey, this.secureIV, data);
let encryptedData = "AE#3223==";
decrypt(this.secureKey, this.secureIV, encryptedData);
}
encrypt(secureKey, secureIV, data) {
this.platform.ready().then(() => {
cordova.plugins.AES256.encrypt(secureKey, secureIV, data,
(encrypedData) => {
console.log('Encrypted Data----', encrypedData);
}, (error) => {
console.log('Error----', error);
});
});
}
decrypt(secureKey, secureIV, encryptedData) {
this.platform.ready().then(() => {
cordova.plugins.AES256.decrypt(secureKey, secureIV, encryptedData,
(decryptedData) => {
console.log('Decrypted Data----', decryptedData);
}, (error) => {
console.log('Error----', error);
});
});
}
generateSecureKey(password) {
this.platform.ready().then(() => {
cordova.plugins.AES256.generateSecureKey(password,
(secureKey) => {
this.secureKey = secureKey;
console.log('Secure Key----', secureKey);
}, (error) => {
console.log('Error----', error);
});
});
}
generateSecureIV(password) {
this.platform.ready().then(() => {
cordova.plugins.AES256.generateSecureIV(password,
(secureIV) => {
this.secureIV = secureIV;
console.log('Secure IV----', secureIV);
}, (error) => {
console.log('Error----', error);
});
});
}
}
Failed to install 'cordova-plugin-aes256-encryption': CordovaError: Version of installed plugin: "cordova-plugin-add-swift-support@1.7.1" does not satisfy dependency plugin requirement "cordova-plugin-add-swift-support@^2.0.1". Try --force to use installed plugin as dependency.
If Above error has occurred then run
ionic cordova plugin add cordova-plugin-aes256-encryption --force --save
FAQs
This cordova ionic plugin allows you to perform AES 256 encryption and decryption on the plain text. It's a cross-platform plugin which supports both Android and iOS. The encryption and decryption are performed on the device native layer so that the perfo
The npm package cordova-plugin-aes256-encryption receives a total of 0 weekly downloads. As such, cordova-plugin-aes256-encryption popularity was classified as not popular.
We found that cordova-plugin-aes256-encryption demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.