Need an API that Encrypt and Decrypt Some payloads
Budget: $30 – $250 USD
I am looking for a developer to create an API that will handle the encryption and decryption of payloads. Here are the details of the project:
The following website (https://jte.trt5.jus.br/#/consulta-processo) has an API which the website communicates with. This API works through encrypted content. The encryption logic is in the main.js javascript;
```var r = function() {
function e() {
if (this.NUM_BITS = 128,
this.NUM_ITERATIONS = 100,
this.p_a_s_s_p_h_r_a_s_e = "X$_5g6p7@m5j708&Z",
e._instance)
throw new Error("Error: Classe nao pode ser instanciada dessa maneira: Use CriptografiaUtil.getInstance()!");
this.s_a_l_t = CryptoJS.enc.Hex.parse("4acfedc7dc72a9003a0dd721d7642bde"),
this.i_v = CryptoJS.enc.Hex.parse("69135769514102d0eded589ff874cacd"),
this.k_e_y_i_t_e_r_a_t_i_o_n_s = CryptoJS.PBKDF2(this.p_a_s_s_p_h_r_a_s_e, this.s_a_l_t, {
keySize: this.NUM_BITS / 32,
iterations: this.NUM_ITERATIONS
})
}
return e.getInstance = function() {
return e._instance || (e._instance = new e),
e._instance
}
,
e.prototype.encrypt = function(e) {
return CryptoJS.AES.encrypt(e, this.k_e_y_i_t_e_r_a_t_i_o_n_s, {
iv: this.i_v,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
})
}
,
e.prototype.decrypt = function(e) {
return CryptoJS.AES.decrypt(e, this.k_e_y_i_t_e_r_a_t_i_o_n_s, {
iv: this.i_v,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
}).toString(CryptoJS.enc.Utf8)
}
,
e
```
I need an API to be created that receives the payload and encrypts it, as well as receiving an encrypted payload and decrypting it
Here are some input examples:
00004020720205100801
00014979120235100017
00006885320195230026
Programming Language: JavaScript
- The API should be developed using JavaScript.
Encryption Algorithm: AES
- The API should use the AES encryption algorithm for encrypting and decrypting payloads.
Expected Volume: High
- The API should be able to handle a high volume of payloads that need to be encrypted and decrypted.
Skills and Experience:
- Strong proficiency in JavaScript programming.
- Experience with encryption algorithms, particularly AES.
- Knowledge of web APIs and how to integrate them into applications.
- Ability to handle high volumes of data efficiently.
- Strong problem-solving skills.
- Good communication and collaboration skills.
If you have the necessary skills and experience, please apply for this project.
The following website (https://jte.trt5.jus.br/#/consulta-processo) has an API which the website communicates with. This API works through encrypted content. The encryption logic is in the main.js javascript;
```var r = function() {
function e() {
if (this.NUM_BITS = 128,
this.NUM_ITERATIONS = 100,
this.p_a_s_s_p_h_r_a_s_e = "X$_5g6p7@m5j708&Z",
e._instance)
throw new Error("Error: Classe nao pode ser instanciada dessa maneira: Use CriptografiaUtil.getInstance()!");
this.s_a_l_t = CryptoJS.enc.Hex.parse("4acfedc7dc72a9003a0dd721d7642bde"),
this.i_v = CryptoJS.enc.Hex.parse("69135769514102d0eded589ff874cacd"),
this.k_e_y_i_t_e_r_a_t_i_o_n_s = CryptoJS.PBKDF2(this.p_a_s_s_p_h_r_a_s_e, this.s_a_l_t, {
keySize: this.NUM_BITS / 32,
iterations: this.NUM_ITERATIONS
})
}
return e.getInstance = function() {
return e._instance || (e._instance = new e),
e._instance
}
,
e.prototype.encrypt = function(e) {
return CryptoJS.AES.encrypt(e, this.k_e_y_i_t_e_r_a_t_i_o_n_s, {
iv: this.i_v,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
})
}
,
e.prototype.decrypt = function(e) {
return CryptoJS.AES.decrypt(e, this.k_e_y_i_t_e_r_a_t_i_o_n_s, {
iv: this.i_v,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
}).toString(CryptoJS.enc.Utf8)
}
,
e
```
I need an API to be created that receives the payload and encrypts it, as well as receiving an encrypted payload and decrypting it
Here are some input examples:
00004020720205100801
00014979120235100017
00006885320195230026
Programming Language: JavaScript
- The API should be developed using JavaScript.
Encryption Algorithm: AES
- The API should use the AES encryption algorithm for encrypting and decrypting payloads.
Expected Volume: High
- The API should be able to handle a high volume of payloads that need to be encrypted and decrypted.
Skills and Experience:
- Strong proficiency in JavaScript programming.
- Experience with encryption algorithms, particularly AES.
- Knowledge of web APIs and how to integrate them into applications.
- Ability to handle high volumes of data efficiently.
- Strong problem-solving skills.
- Good communication and collaboration skills.
If you have the necessary skills and experience, please apply for this project.