You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.
I have included a second method for decrypting the ciphertext in my ykksm copy. Because mcrypt is abandoned and has not been updated for years. openssl can do it as well.
I have included a second method for decrypting the ciphertext in my ykksm copy. Because mcrypt is abandoned and has not been updated for years. openssl can do it as well.
ykksm-utils.php -> function aes128ecb_decrypt
if ( extension_loaded('openssl') && function_exists('openssl_decrypt') && in_array('aes-128-ecb',openssl_get_cipher_methods()) ){
$result = openssl_decrypt(yubi_hex2bin($in),'aes-128-ecb',yubi_hex2bin($key),OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING);
if ( $result !== false )
$result = bin2hex($result);
else
$result = '';
}
else{
// mcrypt block
}
The text was updated successfully, but these errors were encountered: