Skip to content

Instantly share code, notes, and snippets.

View TroniPM's full-sized avatar

Paulo Mateus TroniPM

View GitHub Profile
@TroniPM
TroniPM / Security.java
Last active December 6, 2017 20:15
Autentication symmetric
public byte[] autenticacao(byte[] input, SecretKey secret) throws DataLengthException, InvalidCipherTextException {
CBCBlockCipher cbcBlockCipher = new CBCBlockCipher(new AESEngine());
//SecureRandom random = new SecureRandom();
BlockCipherPadding bcp = new PKCS7Padding();
PaddedBufferedBlockCipher pbbc = new PaddedBufferedBlockCipher(cbcBlockCipher, bcp);
int blockSize = cbcBlockCipher.getBlockSize();
int inputOffset = 0;
int inputLength = input.length;
int outputOffset = 0;
@TroniPM
TroniPM / globoplay-script.js
Last active August 27, 2023 18:56
Remover poluição visual de player web da GLOBOPLAY
["side-panel-live", "header", "media-control-panel__front-layer"].forEach(el => {
try{document.getElementsByClassName(el)[0].style="display:none;";}catch(e){}
})